From 7702cb0f44f4cbb31436b2d2c621d4e5b4c0edec Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 12 Mar 2019 00:47:18 +0100 Subject: irmd: Don't destroy shm_flow_set from IRMd The shm_flow_set for the processes are now created and destroyed together with the irm_flow objects. This old code causes stack overflows in some (rare) conditions and must be removed. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/irmd/main.c b/src/irmd/main.c index 5f9771a7..22a32124 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include @@ -1775,13 +1774,9 @@ void * irm_sanitize(void * o) } if (kill(f->n_pid, 0) < 0) { - struct shm_flow_set * set; log_dbg("Process %d gone, deallocating " "flow %d.", f->n_pid, f->flow_id); - set = shm_flow_set_open(f->n_pid); - if (set != NULL) - shm_flow_set_destroy(set); f->n_pid = -1; irm_flow_set_state(f, FLOW_DEALLOC_PENDING); ipcpi = f->n_1_pid; -- cgit v1.2.3