]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: make pidref_safe_fork_full() work with FORK_WAIT
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Jan 2025 09:50:06 +0000 (10:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Jan 2025 13:14:17 +0000 (14:14 +0100)
commit47e45ea7389ea2e4ad074110ce7ac7f768f79eb0
treed770d4243ccf6cd387c523a2db312eea572bec0a
parent36812cb65976869ef80dbe7fd552565740ab6b11
process-util: make pidref_safe_fork_full() work with FORK_WAIT

(This is useful for the test case added in the next commit, where it's
kinda nice being able to use pidref_safe_fork_full() and acquiring a
pidref of the child in the child in one go. There's no other value in
this than a bit of synctactic sugar for that test. But otoh thre's no
good reason to prohibit FORK_WAIT use like this, hence either way, this
commit should be a good thing.)
src/basic/process-util.c