]> granicus.if.org Git - procps-ng/commit
pgrep: Better warning if pidfd_open not implemented
authorCraig Small <csmall@dropbear.xyz>
Mon, 18 Jul 2022 10:51:41 +0000 (20:51 +1000)
committerCraig Small <csmall@dropbear.xyz>
Mon, 18 Jul 2022 10:51:41 +0000 (20:51 +1000)
commit95a253aa6e95fa1f8e3ed11f3a8d93c3e59aff2e
treeb346219e0748c854ad624cab3dfda615fa232206
parentbcce3e440a1e1ee130c7371251a39c031519336a
pgrep: Better warning if pidfd_open not implemented

If procps is built on a Linux 5.3+ system then pidwait
is built with pidfd_open(). If that program is run on
a system < 5.3 then it gives an odd generic error.

If we get a ENOSYS from one pid, we will get it for all
the others so its better to explain what happens and terminate.

The man page is updated to note this issue.

This came up due to killall in psmisc using pidfd_send_signal

References:
 https://bugs.debian.org/1015228

Signed-off-by: Craig Small <csmall@dropbear.xyz>
NEWS
pgrep.1
pgrep.c