]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/fdset: add detailed debug logging to fdset_new_fill()
authorAshishKumar Mishra <ashishkumar.mishra@bmwtechworks.in>
Wed, 21 Jan 2026 08:43:29 +0000 (14:13 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Jan 2026 11:11:23 +0000 (20:11 +0900)
commit89065ada83af55ed9e2350c2df7e315e2e6ad043
tree5e83e2e0317a2b6a6759af08ab548d482a020d47
parent81a43a44eb58c10b30446241d4bf00fdbaab65f0
shared/fdset: add detailed debug logging to fdset_new_fill()

Currently, when fdset_new_fill() fails to open /proc/self/fd or
encounters an error while processing individual file descriptors
(such as fcntl or fstat failures), it returns a silent error code.

For debugging rarely reproducible failures it becomes difficult to
know the exact cause of failure
This commit updates the function to use log_debug_errno() for all
error paths and hence  provides better visibility into why FD collection
failed, including the path of the problematic FD (via fd_get_path)
and its inode type.
src/shared/fdset.c