]> git.ipfire.org Git - thirdparty/systemd.git/commit
exec-invoke: Use FORK_DETACH when forking off pid namespace child 36446/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 19 Feb 2025 19:57:24 +0000 (20:57 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Feb 2025 20:00:55 +0000 (21:00 +0100)
commit698ac172aadd15afced079bb9553e1ea24e63d06
treedc40b5ff185f697fd0270e5e97fca93f4a87e77a
parentdc2f960b78e07b995e1e01202b0ca3f25868c724
exec-invoke: Use FORK_DETACH when forking off pid namespace child

This ensures the child process is immediately re-parented to the
manager process which avoids a "Supervising process xxx which is
not our child. We'll most likely not notice when it exits." warning
which can currently happen if the parent systemd-executor parent
process sends the pid namespace child process pidref to the manager
process and the manager process dispatches the child process pidref
before the systemd-executor parent process exits, since at that point
the pid namespace child process's parent will still be the
systemd-executor parent process and not the manager process.
src/core/exec-invoke.c