From d5c977948bb2c66852d7a79a04484aa5c0eecaa4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 19 Jan 2013 05:57:06 +0000 Subject: * exceptions.cc (ctrl_c_handler): Remove special-case handler for "cygwin_finished_initializing". * sigproc.cc (exit_thread): Undefine ExitThread earlier to avoid recursion on error return. --- winsup/cygwin/sigproc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/sigproc.cc') diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index fc5631785..f1d299800 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -471,6 +471,7 @@ sigproc_init () void exit_thread (DWORD res) { +# undef ExitThread sigfillset (&_my_tls.sigmask); /* No signals wanted */ lock_process for_now; /* May block indefinitely when exiting. */ if (exit_state) @@ -496,7 +497,6 @@ exit_thread (DWORD res) siginfo_t si = {__SIGTHREADEXIT, SI_KERNEL}; si.si_cyg = h; sig_send (myself_nowait, si, &_my_tls); -# undef ExitThread ExitThread (0); } -- cgit v1.2.3