diff options
-rw-r--r-- | src/udev/udevd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index a6cddf6e5a..5fee67d8df 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -1716,15 +1716,16 @@ int main(int argc, char *argv[]) { setsid(); write_string_file("/proc/self/oom_score_adj", "-1000"); - } else - sd_notify(false, - "READY=1\n" - "STATUS=Processing..."); + } r = manager_listen(manager); if (r < 0) return log_error_errno(r, "failed to set up fds and listen for events: %m"); + (void) sd_notify(false, + "READY=1\n" + "STATUS=Processing..."); + r = sd_event_loop(manager->event); if (r < 0) { log_error_errno(r, "event loop failed: %m"); |