mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Merge pull request #27 from westermo/wmo/2.4
Westermo fixes for UDP inetd services and more Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
commit
4b0f78c1b5
5 files changed
+65
-29
No files matched your search
@@ -245,9 +245,9 @@ pid_t run_getty(char *cmd, char *args[], int console)
|
||||
if (fd != STDIN_FILENO)
|
||||
exit(1);
|
||||
|
||||
dup2(0, STDIN_FILENO);
|
||||
dup2(0, STDOUT_FILENO);
|
||||
dup2(0, STDERR_FILENO);
|
||||
dup2(fd, STDIN_FILENO);
|
||||
dup2(fd, STDOUT_FILENO);
|
||||
dup2(fd, STDERR_FILENO);
|
||||
|
||||
prctl(PR_SET_NAME, "console", 0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user