From 5bdb56f0619ef6fe6ce42d97a37d4a3558628a90 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 12 Jun 2003 12:36:07 +0000 Subject: * exceptions.cc (ctrl_c_handler): Don't send a signal on CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch. --- winsup/cygwin/exceptions.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index fe57c53bc..a6020415e 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -932,7 +932,13 @@ ctrl_c_handler (DWORD type) is shut down or console window is closed. */ if (type == CTRL_SHUTDOWN_EVENT) { +#if 0 + /* Don't send a signal. Only NT service applications and their child + processes will receive this event and the services typically already + handle the shutdown action when getting the SERVICE_CONTROL_SHUTDOWN + control message. */ sig_send (NULL, SIGTERM); +#endif return FALSE; } if (type == CTRL_CLOSE_EVENT) -- cgit v1.2.3