]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-login-problems.patch
- removed obsolete fdisk2 patch
[packages/util-linux.git] / util-linux-login-problems.patch
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
3 @@ -1080,6 +1080,9 @@
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().
7 +     *
8 +     * removed "Solution" - caused serious problems with ash/csh/ksh/zsh
9 +     * as login shell  -- qboosh
10       */
11      signal(SIGINT, SIG_IGN);
12      signal(SIGHUP, SIG_IGN);   /* ignore signal from TIOCNOTTY below */
13 @@ -1093,7 +1096,7 @@
14         exit(0);
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);
20  
21         wait(NULL);
22 @@ -1101,9 +1104,9 @@
23         exit(0);
24      }
25      /* child */
26 -    setsid();
27 +/*  setsid(); */
28      /* reopen, as we need controlling tty in the child */
29 -    opentty(ttyn);
30 +/*  opentty(ttyn); */
31  #endif
32      signal(SIGHUP, SIG_DFL);
33      signal(SIGINT, SIG_DFL);
This page took 0.02447 seconds and 3 git commands to generate.