diff options
author | Sander Vrijders <[email protected]> | 2016-07-06 23:31:32 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-07-06 23:31:32 +0200 |
commit | b61b1ce112261f812ff1d6093b89768eeca237b5 (patch) | |
tree | cb13d43a7b091203356f0fa55eb23259bd294b4d /src/lib/shm_du_map.c | |
parent | f797b763dd9fa95d5294f60232babb017b2b495f (diff) | |
parent | c2aa47de8ae4dde6d2fa787bcd4caf5801b28aaf (diff) | |
download | ouroboros-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/shm_du_map.c')
-rw-r--r-- | src/lib/shm_du_map.c | 2 |
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; } |