diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | ||