projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a8308f
)
Provide a controlling tty to askfirst processes as well
author
Eric Andersen
<andersen@codepoet.org>
Fri, 29 Mar 2002 00:59:44 +0000
(
00:59
-0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 29 Mar 2002 00:59:44 +0000
(
00:59
-0000)
-Erik
init/init.c
patch
|
blob
|
history
diff --git
a/init/init.c
b/init/init.c
index 8f449257ac27e74adf3b2d7e81c5d902fcd6c669..41dfc699788f1ec638b737c651490f035c4d7cf0 100644
(file)
--- 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);