From: Eric Andersen Date: Fri, 29 Mar 2002 00:59:44 +0000 (-0000) Subject: Provide a controlling tty to askfirst processes as well X-Git-Tag: 0_60_3~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c57e42b8f0aaeb44952284ade29717a36ee43e49;p=oweals%2Fbusybox.git Provide a controlling tty to askfirst processes as well -Erik --- diff --git a/init/init.c b/init/init.c index 8f449257a..41dfc6997 100644 --- a/init/init.c +++ b/init/init.c @@ -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);