mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
parent
164d025dd3
commit
045e00cf16
@ -400,10 +400,11 @@ static void worker_spawn(Manager *manager, struct event *event) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* request TERM signal if parent exits */
|
||||
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
||||
/* Request TERM signal if parent exits.
|
||||
Ignore error, not much we can do in that case. */
|
||||
(void) prctl(PR_SET_PDEATHSIG, SIGTERM);
|
||||
|
||||
/* reset OOM score, we only protect the main daemon */
|
||||
/* Reset OOM score, we only protect the main daemon. */
|
||||
write_string_file("/proc/self/oom_score_adj", "0", 0);
|
||||
|
||||
for (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user