Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-07-15 02:15:12 +0400
committerChristopher Faylor <me@cgf.cx>2006-07-15 02:15:12 +0400
commitfbadc634cb3a805c94fd71d4136291b51784cd04 (patch)
tree84fca13db58b9dc1cbc687d06e58f4961abe75db /winsup/cygwin/sync.h
parentd9ceecd2d2d8c94f21468325384975c7308ad899 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r--winsup/cygwin/sync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h
index 8fd01df3a..f7ce7e1b4 100644
--- a/winsup/cygwin/sync.h
+++ b/winsup/cygwin/sync.h
@@ -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 ();