mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
sd-event: do not kill a child process from another child
This commit is contained in:
parent
01e6af7374
commit
86587c93b0
@ -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…
Reference in New Issue
Block a user