sysvinit-2.86-ctrlc.patch 528 B

123456789101112
  1. --- sysvinit-2.86/src/init.c.foo 2006-09-21 14:46:26.000000000 -0400
  2. +++ sysvinit-2.86/src/init.c 2006-09-21 14:47:00.000000000 -0400
  3. @@ -959,7 +959,7 @@
  4. * for any wait-type subprocess we _force_ the console
  5. * to be its controlling tty.
  6. */
  7. - if (strchr("*#sS", runlevel) && ch->flags & WAITING) {
  8. + if ((strchr("*#sS", runlevel) || (ch->id[0] == 'l' && isdigit(ch->id[1]))) && ch->flags & WAITING) {
  9. /*
  10. * We fork once extra. This is so that we can
  11. * wait and change the process group and session