raw-clone: beef up raw_clone() wrapper a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Dec 2017 15:45:04 +0000 (16:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:26 +0000 (13:27 +0100)
commit799a960d1f80c58fd982b3c248906cd4791a69fa
tree8160a980ecd95a2cda0d61f260b479195dc3843d
parent31390963211cf88d0ba60f3c42e35d551b8f3f37
raw-clone: beef up raw_clone() wrapper a bit

First of all, let's return pid_t, which appears to be the correct type
given that we return PIDs, and it#s what fork() uses too.

Most importantly though, flush out our PID cache, so that the call
becomes compatible with our getpid_cached() logic.
src/basic/process-util.c
src/basic/process-util.h
src/basic/raw-clone.h