mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-21 22:22:55 +07:00
service: properly handle if the main process is down and we wait for the cgroup to die, too
This commit is contained in:
parent
5d452f9cec
commit
7f97f0fee4
@ -2579,6 +2579,13 @@ static void service_cgroup_notify_event(Unit *u) {
|
||||
|
||||
break;
|
||||
|
||||
case SERVICE_FINAL_SIGTERM:
|
||||
case SERVICE_FINAL_SIGKILL:
|
||||
if (main_pid_good(s) <= 0 && !control_pid_good(s))
|
||||
service_enter_dead(s, true, true);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user