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:
parent
3cbb20578b
commit
39fd2ca161
@ -351,6 +351,8 @@ static void worker_spawn(Manager *manager, struct event *event) {
|
|||||||
dev = event->dev;
|
dev = event->dev;
|
||||||
event->dev = NULL;
|
event->dev = NULL;
|
||||||
|
|
||||||
|
unsetenv("NOTIFY_SOCKET");
|
||||||
|
|
||||||
manager_workers_free(manager);
|
manager_workers_free(manager);
|
||||||
event_queue_cleanup(manager, EVENT_UNDEF);
|
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");
|
write_string_file("/proc/self/oom_score_adj", "-1000");
|
||||||
} else
|
} else
|
||||||
sd_notify(true,
|
sd_notify(false,
|
||||||
"READY=1\n"
|
"READY=1\n"
|
||||||
"STATUS=Processing...");
|
"STATUS=Processing...");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user