From c57e42b8f0aaeb44952284ade29717a36ee43e49 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 29 Mar 2002 00:59:44 +0000 Subject: Provide a controlling tty to askfirst processes as well -Erik --- 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