1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00

udevd: notify - keep NOTIFY_SOCKET around

Only unset the env var in the workers, but otherwise keep it around in the main daemon.
This commit is contained in:
Tom Gundersen 2015-05-29 18:32:15 +02:00
parent 3cbb20578b
commit 39fd2ca161

View File

@ -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...");