]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-spec: add another flag FORK_WAIT to safe_fork()
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Dec 2017 17:01:37 +0000 (18:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:27 +0000 (13:27 +0100)
commit1f5d1e02478fb550c926b23597895c7f1745dd9f
treedb93092f43f5a5ce7356bc6d9ab8faf013080879
parent66fb11423bb6e327291be32da7f8f68d88792cb2
process-spec: add another flag FORK_WAIT to safe_fork()

This new flag will cause safe_fork() to wait for the forked off child
before returning. This allows us to unify a number of cases where we
immediately wait on the forked off child, witout running any code in the
parent after the fork, and without direct interest in the precise exit
status of the process, except recgonizing EXIT_SUCCESS vs everything
else.
src/basic/calendarspec.c
src/basic/exec-util.c
src/basic/process-util.c
src/basic/process-util.h
src/basic/time-util.c
src/core/shutdown.c
src/quotacheck/quotacheck.c
src/systemctl/systemctl.c