chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:50 +0000 (07:49 +0200)
commit0fc53d6e8f168fb120f4f9247fd1d502086ba490
tree6d4f02d27d2b1daad2c16b1b823177a2883e53c3
parent2ad82ee806c84cb54f43878c3f6124dde4ef6f8f
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