]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: (pidfd-utils) provide a more liberal variant of ul_get_valid_pidfd_or_err()
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sat, 10 Jan 2026 01:53:00 +0000 (20:53 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sun, 1 Feb 2026 20:08:23 +0000 (15:08 -0500)
commit00b4753502f280d09e7426c82f4a7853fb3f95a1
treea649e08aa228c1d55f6ca20e2e5240c87b0f8d14
parent02ff631527f2e1a7b166c786e1900928a393d983
lib: (pidfd-utils) provide a more liberal variant of ul_get_valid_pidfd_or_err()

The new function ul_get_valid_pidfd() behaves less opinionated
in an error case and instead of terminating the calling process
it returns an error.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
include/pidfd-utils.h
lib/pidfd-utils.c