mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
sd-event: do not kill a child process from another child
(cherry picked from commit 86587c93b01ffa14ffdfff3cdf5ba0bfb555d839)
This commit is contained in:
parent
c36ab05b4f
commit
a5fc32fa34
@ -854,6 +854,9 @@ static void source_disconnect(sd_event_source *s) {
|
||||
break;
|
||||
|
||||
case SOURCE_CHILD:
|
||||
if (event_pid_changed(s->event))
|
||||
s->child.process_owned = false;
|
||||
|
||||
if (s->child.pid > 0) {
|
||||
if (event_source_is_online(s)) {
|
||||
assert(s->event->n_online_child_sources > 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user