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:
Joachim Nilsson committed 2016-04-24 12:06:43 +02:00
commit 4b0f78c1b5
5 files changed
+65 -29

No files matched your search

+3 -3
View File
@@ -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);
}