From f5cfdc0fa440eb88870963cc9440369203bb0b13 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 30 Sep 2005 23:52:13 +0000 Subject: * 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. --- winsup/cygwin/winsup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/winsup.h') diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index f9004e16d..004f5b90b 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; -- cgit v1.2.3