]> 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:37:46 +0000 (21:37 +1000)
commit2dfab56755b5c578a7b876cd4ccc67f050d3cff2
tree02878fa3cd3237d92c8821416d6699ea0644ef85
parentad13b4badb552a73e414b1e6aab06b1c24fcc8a4
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