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. --- include/ouroboros/shm_du_map.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ouroboros/shm_du_map.h b/include/ouroboros/shm_du_map.h index 9d6d7aaf..59cd94a1 100644 --- a/include/ouroboros/shm_du_map.h +++ b/include/ouroboros/shm_du_map.h @@ -36,6 +36,7 @@ struct shm_du_map; struct shm_du_map * shm_du_map_create(); struct shm_du_map * shm_du_map_open(); void shm_du_map_close(struct shm_du_map * dum); +void shm_du_map_close_on_exit(struct shm_du_map * dum); void shm_du_map_destroy(struct shm_du_map * dum); pid_t shm_du_map_owner(struct shm_du_map * dum); void * shm_du_map_sanitize(void * o); -- cgit v1.2.3