diff --git a/pmap.c b/pmap.c index 409b37fd..ed266e3e 100644 --- a/pmap.c +++ b/pmap.c @@ -203,7 +203,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;