From ffd447a5432b792eba26693b05a18ba30b1b5fb8 Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 29 Mar 2002 00:59:44 +0000 Subject: Provide a controlling tty to askfirst processes as well -Erik git-svn-id: svn://busybox.net/trunk/busybox@4500 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- init/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init') 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); -- cgit v1.2.3-55-g6feb