diff options
-rw-r--r-- | src/journal-remote/journal-remote.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 12de820330..f06c2cb249 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -808,7 +808,11 @@ static int remoteserver_init(RemoteServer *s, return -EINVAL; } - sd_event_default(&s->events); + r = sd_event_default(&s->events); + if (r < 0) { + log_error("Failed to allocate event loop: %s", strerror(-r)); + return r; + } setup_signals(s); |