]> git.ipfire.org Git - thirdparty/systemd.git/commit
pidref: record pidfd inode number in PidRef struct 32872/head
authorMike Yuan <me@yhndnzj.com>
Thu, 23 May 2024 14:19:05 +0000 (22:19 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 14 Jun 2024 14:59:13 +0000 (16:59 +0200)
commit15930d5d9fc674eebbf3e82326ffa0e71bcff4df
tree9fd3b18ec349d64a4e634fe776b074456a79687a
parent1b6239632dd9697c435d5862a9e2417ee990c6c0
pidref: record pidfd inode number in PidRef struct

Besides internal comparisons, the inode number of pidfds
might be interesting directly to users, too. In the future
this field should also be exposed, so that it can serve as
a unique identifier of a process (but only for display,
as there's no method to map this back to a pid or pidfd).
src/basic/pidref.c
src/basic/pidref.h
src/test/test-pidref.c