]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/execute.c
core: add support for pidfd_spawn
authorLuca Boccassi <bluca@debian.org>
Fri, 12 Jan 2024 21:32:20 +0000 (21:32 +0000)
committerLuca Boccassi <bluca@debian.org>
Mon, 5 Feb 2024 21:52:36 +0000 (21:52 +0000)
commit2e106312e2e8e8f88516039446abcf7d9afdaff2
treeee95d904dd65b64c5ee17e5d12146bb4f8be5e8f
parent9ca13d60dbf5d76f52b21c12dd5c91cd082e291e
core: add support for pidfd_spawn

Added in glibc 2.39, allows cloning into a cgroup and to get
a pid fd back instead of a pid. Removes race conditions for
both changing cgroups and getting a reliable reference for the
child process.

Fixes https://github.com/systemd/systemd/pull/18843
Replaces https://github.com/systemd/systemd/pull/16706
meson.build
src/basic/process-util.c
src/basic/process-util.h
src/core/execute.c