]> git.ipfire.org Git - thirdparty/systemd.git/commit
pidref: add pidref_equal() helper
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Sep 2023 14:09:26 +0000 (16:09 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 20 Sep 2023 05:02:21 +0000 (13:02 +0800)
commit3b74b4958b4f62db8ab9b3ca3568eb080339da16
treebc22afa982083e7d6f924afbf70439ecbdcfbb45
parent648cb0248d14137f2eef5aa0cad2eea51ca25855
pidref: add pidref_equal() helper

This compares two PidRef structures via the pid_t field. Ideally we'd do
a stricter comparison here, that is safe towards PID reuse, but so far
the pidfd API lacks suitable mechanisms for that, hence do the best we
can do.
src/basic/pidref.h
src/core/service.c