mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 09:32:04 +00:00
journal: when we shall go down do so cleanly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user