From 03256707111ce2409de0857c65482512e42d9238 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 6 Jul 2016 17:13:06 +0200 Subject: lib: shm_du_map: Clean sdus upon exit When an application closes the shm_du_map, it will clean all remaining sdu's for that application. Adds a function to clean the shm_du_map on close. Fixes #20. --- src/irmd/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index ab6d5167..8ac22118 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1711,6 +1711,7 @@ static struct irm * irm_create() } else { LOG_INFO("IRMd already running (%d), exiting.", shm_du_map_owner(dum)); + shm_du_map_close(dum); free(instance); exit(EXIT_SUCCESS); } -- cgit v1.2.3