Fix tsyslogd, which reads from stdin, exit on EOF
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
56ff4eedbe
commit
a8060d0ad1
@ -1227,12 +1227,13 @@ int main(int argc, char *argv[])
|
||||
if (i > 0) {
|
||||
printchopped(LocalHostName, line, i + 1, fileno(stdin));
|
||||
} else if (i < 0) {
|
||||
if (errno != EINTR) {
|
||||
if (errno != EINTR)
|
||||
logerror("stdin");
|
||||
} else {
|
||||
logit("EOF\n");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
FD_CLR(fileno(stdin), &readfds);
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user