]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: add clone_with_nested_stack() helper
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2023 08:27:17 +0000 (10:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jun 2023 08:00:30 +0000 (10:00 +0200)
commit29c3520f28773eb978c47f1c0e76ae6f7da8a04b
tree9e62e24489bde944859cbb7fd7b500b0f83c2174
parent09f9530bafeebd1648bace80384b035322265c44
process-util: add clone_with_nested_stack() helper

This wraps glibc's clone() but deals with the 'stack' parameter in a
sensible way. Only supports invocations without CLONE_VM, i.e. when
child is a CoW copy of parent.
src/basic/process-util.c
src/basic/process-util.h