summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.c b/init.c
index dd92854b4..722ccd217 100644
--- a/init.c
+++ b/init.c
@@ -366,8 +366,9 @@ static pid_t run(char* command,
366 message(LOG|CONSOLE, "Bummer, can't open %s\r\n", terminal); 366 message(LOG|CONSOLE, "Bummer, can't open %s\r\n", terminal);
367 exit(1); 367 exit(1);
368 } 368 }
369 dup(fd); 369 dup2(fd, 0);
370 dup(fd); 370 dup2(fd, 1);
371 dup2(fd, 2);
371 tcsetpgrp (0, getpgrp()); 372 tcsetpgrp (0, getpgrp());
372 set_term(0); 373 set_term(0);
373 374