]> git.ipfire.org Git - thirdparty/systemd.git/commit
pidref: move generic pidfd_get_inode_id() to pidfd-util
authorMike Yuan <me@yhndnzj.com>
Tue, 19 Nov 2024 20:30:47 +0000 (21:30 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 4 Jan 2025 16:07:58 +0000 (17:07 +0100)
commit2fa42318c3a3f52270af202ea14b328439f6cff2
tree474232a7934466021faef965ba8bf34b84ffa8e2
parentebddfb0dee14d34a07f5ac47a64dd5df8b9e6a57
pidref: move generic pidfd_get_inode_id() to pidfd-util

Prompted by https://github.com/systemd/systemd/pull/35224/commits/221d6e54c60389f26c2c79dbfa4e83204d2775d7

Also generalize pidfd_check_pidfs() and expose have_pidfs for later use.
src/basic/pidfd-util.c
src/basic/pidfd-util.h
src/basic/pidref.c