Minor change. init now uses dup2.
-Erik
This commit is contained in:
1 parent
8e759aa31f
commit
a6d0dbc86f
4 files changed
+18
-10
No files matched your search
+3
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user