diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-30 23:52:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-30 23:52:13 +0000 |
commit | f5cfdc0fa440eb88870963cc9440369203bb0b13 (patch) | |
tree | 4bbd831c36a65209c3271ed0daabfc1775cbd0f1 /winsup/cygwin/winsup.h | |
parent | fd45a7909b739539a4dd21fa8ce7b284c464124f (diff) | |
download | newlib-f5cfdc0fa440eb88870963cc9440369203bb0b13.zip newlib-f5cfdc0fa440eb88870963cc9440369203bb0b13.tar.gz newlib-f5cfdc0fa440eb88870963cc9440369203bb0b13.tar.bz2 |
* dcrt0.cc (do_exit): Don't set ES_SET_MUTO here. Call get_exit_lock()
instead.
(get_exit_lock): New function. Grabs the lock and sets initial exit_state.
* exceptions.cc (try_to_debug): Use low_priority_sleep.
(sigpacket::process): Avoid handler if this is an exec stub.
(signal_exit): Use get_exit_lock rather than manipulating the exit_lock
critical section directly.
* pinfo.cc (pinfo::exit): Ditto.
* winsup.h (get_exit_lock): Declare.
(exit_lock): Delete declaration.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index f9004e1..004f5b9 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -203,6 +203,7 @@ enum exit_states extern exit_states exit_state; void __stdcall do_exit (int) __attribute__ ((regparm (1), noreturn)); +void __stdcall get_exit_lock (); /* UID/GID */ void uinfo_init (); @@ -347,7 +348,6 @@ extern HANDLE hMainProc; extern HANDLE hProcToken; extern HANDLE hProcImpToken; extern HANDLE hExeced; -extern CRITICAL_SECTION exit_lock; extern bool cygwin_testing; |