summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index df5636970..512e1bef5 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -94,26 +94,17 @@ NO_COPY static struct
/* Initialization code. */
-BOOL WINAPI
-dummy_ctrl_c_handler (DWORD)
-{
- return TRUE;
-}
-
void
init_console_handler (bool install_handler)
{
BOOL res;
SetConsoleCtrlHandler (ctrl_c_handler, FALSE);
- if (wincap.has_null_console_handler_routine ())
- SetConsoleCtrlHandler (NULL, FALSE);
+ SetConsoleCtrlHandler (NULL, FALSE);
if (install_handler)
res = SetConsoleCtrlHandler (ctrl_c_handler, TRUE);
- else if (wincap.has_null_console_handler_routine ())
- res = SetConsoleCtrlHandler (NULL, TRUE);
else
- res = SetConsoleCtrlHandler (dummy_ctrl_c_handler, TRUE);
+ res = SetConsoleCtrlHandler (NULL, TRUE);
if (!res)
system_printf ("SetConsoleCtrlHandler failed, %E");
}