diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journald.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index aa12fa785d..37896d050d 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -72,6 +72,12 @@ int main(int argc, char *argv[]) { for (;;) { usec_t t = (usec_t) -1, n; + r = sd_event_get_state(server.event); + if (r < 0) + goto finish; + if (r == SD_EVENT_FINISHED) + break; + n = now(CLOCK_REALTIME); if (server.max_retention_usec > 0 && server.oldest_file_usec > 0) { |