summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-07-06 23:31:32 +0200
committerSander Vrijders <[email protected]>2016-07-06 23:31:32 +0200
commitb61b1ce112261f812ff1d6093b89768eeca237b5 (patch)
treecb13d43a7b091203356f0fa55eb23259bd294b4d /src/lib
parentf797b763dd9fa95d5294f60232babb017b2b495f (diff)
parentc2aa47de8ae4dde6d2fa787bcd4caf5801b28aaf (diff)
downloadouroboros-b61b1ce112261f812ff1d6093b89768eeca237b5.tar.gz
ouroboros-b61b1ce112261f812ff1d6093b89768eeca237b5.zip
Merged in dstaesse/ouroboros/be-fix-stale (pull request #163)
lib: shm_du_map: Fix cleaning stale DU map
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/shm_du_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c
index 1c9155a0..53959676 100644
--- a/src/lib/shm_du_map.c
+++ b/src/lib/shm_du_map.c
@@ -390,7 +390,7 @@ void shm_du_map_destroy(struct shm_du_map * dum)
return;
}
- if (getpid() != *dum->api) {
+ if (getpid() != *dum->api && kill(*dum->api, 0) == 0) {
LOG_DBGF("Only IRMd can destroy %s.", SHM_DU_MAP_FILENAME);
return;
}