core: on unified we don't need to check u->pids: we can use proper notifications (#3531)
Fixes: #3483
This commit is contained in:
committed by
Lennart Poettering
parent
f4f5e50a0a
commit
bbc85a16e1
+3
-2
@@ -428,8 +428,9 @@ static void scope_sigchld_event(Unit *u, pid_t pid, int code, int status) {
|
||||
unit_tidy_watch_pids(u, 0, 0);
|
||||
unit_watch_all_pids(u);
|
||||
|
||||
/* If the PID set is empty now, then let's finish this off */
|
||||
if (set_isempty(u->pids))
|
||||
/* If the PID set is empty now, then let's finish this off
|
||||
(On unified we use proper notifications) */
|
||||
if (cg_unified() <= 0 && set_isempty(u->pids))
|
||||
scope_notify_cgroup_empty_event(u);
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -2800,8 +2800,9 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
|
||||
unit_tidy_watch_pids(u, s->main_pid, s->control_pid);
|
||||
unit_watch_all_pids(u);
|
||||
|
||||
/* If the PID set is empty now, then let's finish this off */
|
||||
if (set_isempty(u->pids))
|
||||
/* If the PID set is empty now, then let's finish this off
|
||||
(On unified we use proper notifications) */
|
||||
if (cg_unified() <= 0 && set_isempty(u->pids))
|
||||
service_notify_cgroup_empty_event(u);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user