From a6d0dbc86fd8a84f9c2a05f77013bd3eb5efa697 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Sat, 29 Jan 2000 06:29:32 +0000 Subject: Minor change. init now uses dup2. -Erik --- init/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index dd92854..722ccd2 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); -- cgit v1.1