aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-01-29 06:29:32 +0000
committerErik Andersen <andersen@codepoet.org>2000-01-29 06:29:32 +0000
commita6d0dbc86fd8a84f9c2a05f77013bd3eb5efa697 (patch)
tree084110d01c73b978088256492695d90fb7d52ef0 /init
parent8e759aa31fa3f0dea6686cb7194398e68ff76696 (diff)
downloadbusybox-a6d0dbc86fd8a84f9c2a05f77013bd3eb5efa697.tar.gz
Minor change. init now uses dup2.
-Erik
Diffstat (limited to 'init')
-rw-r--r--init/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index dd92854b4..722ccd217 100644
--- a/init/init.c
+++ b/init/init.c
@@ -366,8 +366,9 @@ static pid_t run(char* command,
message(LOG|CONSOLE, "Bummer, can't open %s\r\n", terminal);
exit(1);
}
- dup(fd);
- dup(fd);
+ dup2(fd, 0);
+ dup2(fd, 1);
+ dup2(fd, 2);
tcsetpgrp (0, getpgrp());
set_term(0);