process-util: add posix_spawn helper
authorLuca Boccassi <bluca@debian.org>
Fri, 2 Jun 2023 15:06:17 +0000 (16:06 +0100)
committerLuca Boccassi <bluca@debian.org>
Thu, 12 Oct 2023 12:37:22 +0000 (13:37 +0100)
commit6ecdfe7d1008964eed3f67b489cef8c65a218bf1
tree21a3329538871d19e013d452b60d00105bd23b32
parent58cb36e56b15e14da23a507f337af6bd26503e2f
process-util: add posix_spawn helper

This provides CLONE_VM + CLONE_VFORK semantics, so it is useful to
avoid CoW traps and other issues around doing work between fork()
and exec().
src/basic/process-util.c
src/basic/process-util.h