]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: make pidfd_open() use more portable and robust
authorKarel Zak <kzak@redhat.com>
Thu, 31 Mar 2022 08:55:30 +0000 (10:55 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Mar 2022 08:55:30 +0000 (10:55 +0200)
commit153607e20377f60ab9ff026c1a5c0d07f89f49a3
tree8c23697cc89970717363ac6df60fa46df7f44101
parent1f248f73d851518fb84d8dd4a1b9b15619454c4b
unshare: make pidfd_open() use more portable and robust

* use #ifdef UL_HAVE_PIDFD for better portability

* open and close fd_parent_pid only when --kill-child specified

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.c