aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
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 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);