diff options
author | Christopher Faylor <me@cgf.cx> | 2006-07-14 22:15:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-07-14 22:15:12 +0000 |
commit | fbadc634cb3a805c94fd71d4136291b51784cd04 (patch) | |
tree | 84fca13db58b9dc1cbc687d06e58f4961abe75db /winsup/cygwin/sync.h | |
parent | d9ceecd2d2d8c94f21468325384975c7308ad899 (diff) | |
download | cygnal-fbadc634cb3a805c94fd71d4136291b51784cd04.tar.gz cygnal-fbadc634cb3a805c94fd71d4136291b51784cd04.tar.bz2 cygnal-fbadc634cb3a805c94fd71d4136291b51784cd04.zip |
* 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.h | 1 |
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 (); |