]> granicus.if.org Git - procps-ng/commit
pmap: Do not display error if shmctl(..IPC_RMID) returns EINVAL
authorCristian Rodríguez <crrodriguez@opensuse.org>
Thu, 28 Apr 2016 05:22:53 +0000 (02:22 -0300)
committerCraig Small <csmall@enc.com.au>
Thu, 28 Apr 2016 11:36:29 +0000 (21:36 +1000)
commit7bf9457f71910b6fc57f8fb2223ff94a590db552
treec75445ec2fb378121e741998a8bfc3d4ee5b4c65
parent99d71ad5810b8fbfab5c4c6be97f3e86953b6157
pmap: Do not display error if shmctl(..IPC_RMID) returns EINVAL

The segment may have been destroyed by the kernel automagically
after shmdt(addr)

How to reproduce:

sysctl -w kernel.shm_rmid_forced=1
./pmap 1
shared memory remove: Invalid argument
[..]
pmap.c