18 #include "wvscatterhash.h"
21 DeclareWvScatterTable(
int);
22 typedef wv::function<void(pid_t)> WvForkCallback;
53 extern pid_t
wvfork(
int dontclose1 = -1,
int dontclose2 = -1);
54 extern pid_t
wvfork(intTable &dontclose );
pid_t wvfork_start(int *waitfd)
wvfork_start is just like fork, except that it will block the parent until the child process closes t...
void add_wvfork_callback(WvForkCallback cb)
Register a callback to be called during wvfork.
pid_t wvfork(int dontclose1=-1, int dontclose2=-1)
wvfork() just runs fork(), but it closes all file descriptors that are flagged close-on-exec, since we don't necessarily always run exec() after we fork()...