Provide a controlling tty to askfirst processes as well
-Erik
This commit is contained in:
parent
8a8308f129
commit
c57e42b8f0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user