]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/pidfd-utils: improve robustness
authorKarel Zak <kzak@redhat.com>
Tue, 4 Mar 2025 08:47:11 +0000 (09:47 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 4 Mar 2025 11:42:35 +0000 (12:42 +0100)
commitaa2334947d1226fc2d35b1aa907a64f84c8144fe
tree4555c426a32c7a5d67f1fef6dd113f21b502b25d
parent6fd6e70de83fa8cf30110405208ed1df8478b57b
include/pidfd-utils: improve robustness

* remove global UL_HAVE_PIDFD, in many cases we need only subset of pidfd
  kernel API, rrather than all the functios

* improve #ifdefs for pidfd_*() direct syscalls

* improve dummy fallback to not redefine system header files

Fixes: https://github.com/util-linux/util-linux/issues/3437
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 4a1053812f396619070b6849f4d8830c1ee272ee)
include/pidfd-utils.h
misc-utils/kill.c
sys-utils/unshare.c