Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

wvfork.h

Go to the documentation of this file.
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  */
00005 
00006 #ifndef __WVFORK_H
00007 #define __WVFORK_H
00008 
00009 #include <unistd.h>
00010 #include "wvhashtable.h"
00011 
00012 DeclareWvTable3( int, WvIntTable, );
00013 
00014 /* wvfork() just runs fork(), but it closes all file descriptors that are
00015  * flagged close-on-exec, since we don't necessarily always run exec() 
00016  * after we fork()...
00017  *
00018  * This fixes the year-old mystery bug where WvTapeBackup caused watchdog
00019  * reboots because the CHILD process wasn't touching it, and it was already
00020  * open before the fork()...
00021  */
00022 extern pid_t wvfork( int dontclose1=-1, int dontclose2=-1 );
00023 extern pid_t wvfork( WvIntTable& dontclose );
00024 
00025 #endif

Generated on Fri Apr 5 15:16:51 2002 for WvStreams by doxygen1.2.15