1 --- util-linux-2.11g/login-utils/login.c.orig Thu Aug 16 20:21:01 2001
2 +++ util-linux-2.11g/login-utils/login.c Thu Aug 16 20:23:07 2001
4 * setsid() or setpgrp(), then a ctrl-\, sending SIGQUIT to every
5 * process in the pgrp, will kill us.
6 * Solution: use TIOCNOTTY and setsid().
8 + * removed "Solution" - caused serious problems with ash/csh/ksh/zsh
9 + * as login shell -- qboosh
11 signal(SIGINT, SIG_IGN);
12 signal(SIGHUP, SIG_IGN); /* ignore signal from TIOCNOTTY below */
15 } else if (childPid) {
16 /* parent - wait for child to finish, then cleanup session */
17 - ioctl(0, TIOCNOTTY, NULL);
18 + /* ioctl(0, TIOCNOTTY, NULL); */
19 signal(SIGHUP, SIG_DFL);
28 /* reopen, as we need controlling tty in the child */
32 signal(SIGHUP, SIG_DFL);
33 signal(SIGINT, SIG_DFL);