mirror of
https://github.com/systemd/systemd.git
synced 2025-09-14 09:44:38 +03:00
@@ -400,10 +400,11 @@ static void worker_spawn(Manager *manager, struct event *event) {
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* request TERM signal if parent exits */
|
/* Request TERM signal if parent exits.
|
||||||
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
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);
|
write_string_file("/proc/self/oom_score_adj", "0", 0);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Reference in New Issue
Block a user