summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-09-02 04:51:09 +0000
committerChristopher Faylor <me@cgf.cx>2005-09-02 04:51:09 +0000
commitb8a66ba2cdef71c64a38ba3cc5609df3da41620e (patch)
treeaaf3c05def84c2051de08dba632e74216966c6f8 /winsup/cygwin/exceptions.cc
parent7a1bf10a8433261a1dd4ae86b76750716d358569 (diff)
downloadcygnal-b8a66ba2cdef71c64a38ba3cc5609df3da41620e.tar.gz
cygnal-b8a66ba2cdef71c64a38ba3cc5609df3da41620e.tar.bz2
cygnal-b8a66ba2cdef71c64a38ba3cc5609df3da41620e.zip
revert inexplicable previous checkin
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 71a8b7513..852b5019f 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -123,8 +123,7 @@ void
init_console_handler (BOOL install_handler)
{
BOOL res;
- while (SetConsoleCtrlHandler (ctrl_c_handler, FALSE))
- continue;
+ SetConsoleCtrlHandler (ctrl_c_handler, FALSE);
if (install_handler)
res = SetConsoleCtrlHandler (ctrl_c_handler, TRUE);
else if (wincap.has_null_console_handler_routine ())
@@ -834,7 +833,6 @@ has_visible_window_station ()
static BOOL WINAPI
ctrl_c_handler (DWORD type)
{
-console_printf ("%u OUCH!\n", GetCurrentProcessId ());
static bool saw_close;
if (!cygwin_finished_initializing)
@@ -847,11 +845,6 @@ console_printf ("%u OUCH!\n", GetCurrentProcessId ());
_my_tls.remove (INFINITE);
-#if 0
- if (type == CTRL_C_EVENT || type == CTRL_BREAK_EVENT)
- proc_subproc (PROC_KILLFORKED, 0);
-#endif
-
/* Return FALSE to prevent an "End task" dialog box from appearing
for each Cygwin process window that's open when the computer
is shut down or console window is closed. */