summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorEric Andersen2002-03-29 00:59:44 +0000
committerEric Andersen2002-03-29 00:59:44 +0000
commitc57e42b8f0aaeb44952284ade29717a36ee43e49 (patch)
tree017e127da3049d59a668bae6edadf85c16ac1752 /init/init.c
parent8a8308f129cfda74a289b0c31205fd07a3fc05c2 (diff)
downloadbusybox-c57e42b8f0aaeb44952284ade29717a36ee43e49.zip
busybox-c57e42b8f0aaeb44952284ade29717a36ee43e49.tar.gz
Provide a controlling tty to askfirst processes as well
-Erik
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c
index 8f44925..41dfc69 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);