diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-03-29 00:59:44 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-03-29 00:59:44 +0000 |
commit | ffd447a5432b792eba26693b05a18ba30b1b5fb8 (patch) | |
tree | 017e127da3049d59a668bae6edadf85c16ac1752 /init | |
parent | 09e02a5d1082a019e424b7e315f50f182c200e31 (diff) | |
download | busybox-w32-ffd447a5432b792eba26693b05a18ba30b1b5fb8.tar.gz busybox-w32-ffd447a5432b792eba26693b05a18ba30b1b5fb8.tar.bz2 busybox-w32-ffd447a5432b792eba26693b05a18ba30b1b5fb8.zip |
Provide a controlling tty to askfirst processes as well
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@4500 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
518 | 518 | ||
519 | /* If the init Action requires up to wait, then force the | 519 | /* If the init Action requires up to wait, then force the |
520 | * supplied terminal to be the controlling tty. */ | 520 | * supplied terminal to be the controlling tty. */ |
521 | if (a->action & (SYSINIT|WAIT|CTRLALTDEL|SHUTDOWN|RESTART)) { | 521 | if (a->action & (SYSINIT|WAIT|CTRLALTDEL|SHUTDOWN|RESTART|ASKFIRST)) { |
522 | 522 | ||
523 | /* Take over the controlling tty */ | 523 | /* Take over the controlling tty */ |
524 | ioctl(fd, TIOCSCTTY, 1); | 524 | ioctl(fd, TIOCSCTTY, 1); |