Provide a controlling tty to askfirst processes as well
authorEric Andersen <andersen@codepoet.org>
Fri, 29 Mar 2002 00:59:44 +0000 (00:59 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 29 Mar 2002 00:59:44 +0000 (00:59 -0000)
 -Erik

init/init.c

index 8f449257ac27e74adf3b2d7e81c5d902fcd6c669..41dfc699788f1ec638b737c651490f035c4d7cf0 100644 (file)
@@ -518,7 +518,7 @@ static pid_t run(struct init_action *a)
 
                /* If the init Action requires up to wait, then force the
                 * supplied terminal to be the controlling tty. */
-               if (a->action & (SYSINIT|WAIT|CTRLALTDEL|SHUTDOWN|RESTART)) {
+               if (a->action & (SYSINIT|WAIT|CTRLALTDEL|SHUTDOWN|RESTART|ASKFIRST)) {
 
                        /* Take over the controlling tty */
                        ioctl(fd, TIOCSCTTY, 1);