]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-daemon: add sd_pidfd_get_inode_id()
authorMike Yuan <me@yhndnzj.com>
Sun, 1 Jun 2025 07:12:13 +0000 (09:12 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 4 Jun 2025 23:35:08 +0000 (01:35 +0200)
commit46b0844743f653b880df6b0dc94447f9327787dc
treea15491d5d1fde75d5b438147eb29cdc30ee4da3b
parenta842c26be3c57eba52bc8725ed310957ba3daeb3
sd-daemon: add sd_pidfd_get_inode_id()

We nowadays expose pidfdid at various places, e.g. envvars
and dbus properties. Also the sd_notify() MAINPID= message
has been complemented with MAINPIDFDID=. But acquiring
pidfdid is actually non-trivial especially considering
the 32-bit case, hence let's introduce a public helper
in sd-daemon specifically for that purpose.
NEWS
man/rules/meson.build
man/sd-daemon.xml
man/sd_notify.xml
man/sd_pidfd_get_inode_id.xml [new file with mode: 0644]
src/libsystemd/libsystemd.sym
src/libsystemd/sd-daemon/sd-daemon.c
src/systemd/sd-daemon.h