diff --git a/pmap.c b/pmap.c index 0ca95e9c..b2851c5e 100644 --- a/pmap.c +++ b/pmap.c @@ -201,7 +201,7 @@ static void discover_shm_minor(void) perror(_("shared memory detach")); out_destroy: - if (shmctl(shmid, IPC_RMID, NULL)) + if (shmctl(shmid, IPC_RMID, NULL) && errno != EINVAL) perror(_("shared memory remove")); return;