summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Andersen2000-07-04 19:41:23 +0000
committerEric Andersen2000-07-04 19:41:23 +0000
commitb02c54ebeef845480a09690fe092071d823c1f0f (patch)
treefb7b1d503330de8d1f6ea019019c2ea0161d1c59 /init
parent72965e3454ae254455c6d6ce69cf0d5af62dc2db (diff)
downloadbusybox-b02c54ebeef845480a09690fe092071d823c1f0f.zip
busybox-b02c54ebeef845480a09690fe092071d823c1f0f.tar.gz
* Fix to init.c from Stuart Menefy <Stuart.Menefy@st.com> so that
it always sets the controlling terminal before running any programs -Erik
Diffstat (limited to 'init')
-rw-r--r--init/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index 2c27513..26e4dc7 100644
--- a/init/init.c
+++ b/init/init.c
@@ -411,6 +411,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
dup2(fd, 0);
dup2(fd, 1);
dup2(fd, 2);
+ ioctl(0, TIOCSCTTY, 0);
tcsetpgrp(0, getpgrp());
set_term(0);