* fork.cc (fork): Lock the process before forking to prevent things like new

fds from being opened, etc.
* sync.h (lock_process::dont_bother): New function.
This commit is contained in:
Christopher Faylor
2006-07-14 22:15:12 +00:00
parent d9ceecd2d2
commit fbadc634cb
3 changed files with 12 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ class lock_process
static muto locker;
public:
static void init () {locker.init ("lock_process");}
void dont_bother () {skip_unlock = true;}
lock_process (bool exiting = false)
{
locker.acquire ();