From f16b4a1954ab4fbca0ec403f6a04c80375328921 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 5 Mar 2023 12:17:46 +0100 Subject: irmd: Fix cleanup of failed flows If a flow allocation failed, the flow was left in a pending state instead of a failed state, which caused the irmd to hang on exit. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/irm_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irmd/irm_flow.c') diff --git a/src/irmd/irm_flow.c b/src/irmd/irm_flow.c index 5bc8dde4..8bdda86b 100644 --- a/src/irmd/irm_flow.c +++ b/src/irmd/irm_flow.c @@ -135,7 +135,7 @@ void irm_flow_destroy(struct irm_flow * f) else f->state = FLOW_NULL; - pthread_cond_signal(&f->state_cond); + pthread_cond_broadcast(&f->state_cond); pthread_cleanup_push(cancel_irm_destroy, f); -- cgit v1.2.3