mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
sd-event: assert on hashmap_remove(child.pid)
Follow-up for54988a27b9anda342c71d36
This commit is contained in:
@@ -988,7 +988,7 @@ static void source_disconnect(sd_event_source *s) {
|
||||
s->event->n_online_child_sources--;
|
||||
}
|
||||
|
||||
(void) hashmap_remove(s->event->child_sources, PID_TO_PTR(s->child.pid));
|
||||
assert_se(hashmap_remove(s->event->child_sources, PID_TO_PTR(s->child.pid)));
|
||||
}
|
||||
|
||||
if (EVENT_SOURCE_WATCH_PIDFD(s))
|
||||
|
||||
Reference in New Issue
Block a user