* 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.
This commit is contained in:
Christopher Faylor
2013-01-19 05:57:06 +00:00
parent 5d858e49eb
commit d5c977948b
3 changed files with 8 additions and 9 deletions

View File

@ -875,14 +875,6 @@ ctrl_c_handler (DWORD type)
{
static bool saw_close;
if (!cygwin_finished_initializing)
{
if (myself->cygstarted) /* Was this process created by a cygwin process? */
return TRUE; /* Yes. Let the parent eventually handle CTRL-C issues. */
debug_printf ("exiting with status %p", STATUS_CONTROL_C_EXIT);
ExitProcess (STATUS_CONTROL_C_EXIT);
}
/* Remove early or we could overthrow the threadlist in cygheap.
Deleting this line causes ash to SEGV if CTRL-C is hit repeatedly.
I am not exactly sure why that is. Maybe it's just because this