From f3a8b05a9e71473b88132919f8f1813eb577f71a Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 12 Aug 2025 23:25:03 +0200 Subject: irmd: Fix bad assertion in registry The registry wait_flow_accepted asserts the flow state to be pending, but this is not always true as the thread that accepts can be faster in execution than the one waiting for it. Signed-off-by: Dimitri Staessens --- src/irmd/reg/reg.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/irmd') diff --git a/src/irmd/reg/reg.c b/src/irmd/reg/reg.c index 52e9eaa7..8d1fa8cf 100644 --- a/src/irmd/reg/reg.c +++ b/src/irmd/reg/reg.c @@ -1808,8 +1808,6 @@ int reg_wait_flow_accepted(struct flow_info * info, assert(flow != NULL); assert(info->id == flow->info.id); assert(info->n_pid == flow->info.n_pid); - assert(info->state == flow->info.state); - assert(flow->info.state == FLOW_ACCEPT_PENDING); if (__reg_add_active_proc(info->n_pid) < 0) { log_err("Failed to mark pid %d active.", info->n_pid); -- cgit v1.2.3