sd-event: assert on hashmap_remove(child.pid)

Follow-up for 54988a27b9
and a342c71d36
This commit is contained in:
Mike Yuan
2025-02-21 16:45:34 +01:00
parent 37149e692a
commit 4f63673482

View File

@@ -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))