summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-07-06 19:21:11 +0200
committerSander Vrijders <[email protected]>2016-07-06 19:21:11 +0200
commitff09baf0cf9ec501ec54d2666e386238bc7e6389 (patch)
tree0966469900595c3f51acac2d9bb89429a826f1b0 /src/lib/dev.c
parent4fb0d2bfb7486936ef05721667f03eccf664d56e (diff)
parentdbed235ff41b9ae72b188e57888bacc984a43d75 (diff)
downloadouroboros-ff09baf0cf9ec501ec54d2666e386238bc7e6389.tar.gz
ouroboros-ff09baf0cf9ec501ec54d2666e386238bc7e6389.zip
Merged in dstaesse/ouroboros/be-clean-exit (pull request #160)
lib: shm_du_map: Clean sdus upon exit
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index d85afc45..f13c8423 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -113,10 +113,10 @@ void ap_fini(void)
if (_ap_instance->fds != NULL)
bmp_destroy(_ap_instance->fds);
- if (_ap_instance->dum != NULL)
- shm_du_map_close(_ap_instance->dum);
if (_ap_instance->rb != NULL)
shm_ap_rbuff_destroy(_ap_instance->rb);
+ if (_ap_instance->dum != NULL)
+ shm_du_map_close_on_exit(_ap_instance->dum);
pthread_rwlock_rdlock(&_ap_instance->flows_lock);