summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-05-29 18:32:15 +0200
committerTom Gundersen <teg@jklm.no>2015-05-29 18:52:13 +0200
commit39fd2ca1616e6d0bc8ca49bb8de1245a9087f2a2 (patch)
tree358d29660f8196b7a14a8f30c88444ca57e88c10 /src/udev
parent3cbb20578b4cc239b049d4901fdac42640f4879e (diff)
udevd: notify - keep NOTIFY_SOCKET around
Only unset the env var in the workers, but otherwise keep it around in the main daemon.
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 5bfeefdf7d..81ba6650e4 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...");