From 39fd2ca1616e6d0bc8ca49bb8de1245a9087f2a2 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 29 May 2015 18:32:15 +0200 Subject: [PATCH] udevd: notify - keep NOTIFY_SOCKET around Only unset the env var in the workers, but otherwise keep it around in the main daemon. --- src/udev/udevd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 5bfeefdf7df..81ba6650e4c 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -351,6 +351,8 @@ static void worker_spawn(Manager *manager, struct event *event) { dev = event->dev; event->dev = NULL; + unsetenv("NOTIFY_SOCKET"); + manager_workers_free(manager); event_queue_cleanup(manager, EVENT_UNDEF); @@ -1684,7 +1686,7 @@ int main(int argc, char *argv[]) { write_string_file("/proc/self/oom_score_adj", "-1000"); } else - sd_notify(true, + sd_notify(false, "READY=1\n" "STATUS=Processing...");