]> git.ipfire.org Git - thirdparty/systemd.git/commit
pidref: add explicit concept of "remote" PidRef
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Oct 2024 09:33:42 +0000 (11:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 15 Oct 2024 16:26:05 +0000 (18:26 +0200)
commit7e3e540b88db5546d0c63103619d96b033871b7b
tree635774b109aa988d5a3247aeeccbc9a714009a82
parente1efa9d8044a7564844b8d599eda4b59eb1152e9
pidref: add explicit concept of "remote" PidRef

This PidRef just track some data, but cannot be used for any active
operation.

Background: for https://github.com/systemd/systemd/pull/34703 it makes
sense to track explicitly if some PidRef is not a local one, so that we
never attempt to for example "kill a remote process" and thus
acccidentally hit the wrong process (i.e. a local one by the same PID).
src/basic/pidref.c
src/basic/pidref.h
src/test/test-pidref.c