diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-07 21:56:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-07 21:56:13 +0100 |
commit | b670e92b50686773c82ccb4c07f93e85ff90783b (patch) | |
tree | eab849ce13a2d0bd3a700e366fe4f04db0ca16f9 /src | |
parent | 0992bbd109d60ce10ddd8895259fd9b4c1bbfdb5 (diff) |
syslog: make sure the kmsg bridge is always pulled in and never terminated automatically
Since we want to replace the bridge dynamically by the real syslog
implementation such as rsyslog we need to make sure that the the bridge
stays running right to the moment rsyslog is up so that we process
messages enqueued by other processes started before rsyslog, so that
those clients don't stay stuck.
Diffstat (limited to 'src')
-rw-r--r-- | src/kmsg-syslogd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kmsg-syslogd.c b/src/kmsg-syslogd.c index e23c9d3862..4edb16136b 100644 --- a/src/kmsg-syslogd.c +++ b/src/kmsg-syslogd.c @@ -39,7 +39,6 @@ #include "fdset.h" #define SERVER_FD_MAX 16 -#define TIMEOUT ((int) (5*60*MSEC_PER_SEC)) typedef struct Stream Stream; @@ -512,7 +511,7 @@ int main(int argc, char *argv[]) { struct epoll_event event; int k; - if ((k = epoll_wait(server.epoll_fd, &event, 1, TIMEOUT)) < 0) { + if ((k = epoll_wait(server.epoll_fd, &event, 1, -1)) < 0) { if (errno == EINTR) continue; |