WvStreams
wvfork.h
Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  */
00009 #ifndef __WVFORK_H
00010 #define __WVFORK_H
00011 
00012 #ifndef _WIN32
00013 #include <unistd.h>
00014 #else
00015 typedef int pid_t;
00016 #endif
00017 
00018 #include "wvscatterhash.h"
00019 #include "wvtr1.h"
00020 
00021 DeclareWvScatterTable(int);
00022 typedef wv::function<void(pid_t)> WvForkCallback;
00023 
00032 extern void add_wvfork_callback(WvForkCallback cb);
00033 
00042 extern pid_t wvfork_start(int *waitfd);
00043 
00053 extern pid_t wvfork(int dontclose1 = -1, int dontclose2 = -1);
00054 extern pid_t wvfork(intTable &dontclose );
00055 
00056 #endif