diff options
Diffstat (limited to 'src/lib')
-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; } |