chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:51 +0000 (07:49 +0200)
commitda33559d0bb19673cd487ed8ca8284e6c84971c1
tree1201383d1ed38d7568f160dd4c09e93ff8f81742
parent069824bd6c91476242902f7a21d27df11ce18aac
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/exec-util.c
src/basic/process-util.c
src/basic/process-util.h
src/basic/time-util.c