aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-06-12 12:36:07 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-06-12 12:36:07 +0000
commit5bdb56f0619ef6fe6ce42d97a37d4a3558628a90 (patch)
tree4e5c3f5b53da2c86561a5604ad0331165dcafac2 /winsup
parent00e6660b0d17b23a8a48a0e105cb266967b3bb6b (diff)
downloadnewlib-5bdb56f0619ef6fe6ce42d97a37d4a3558628a90.zip
newlib-5bdb56f0619ef6fe6ce42d97a37d4a3558628a90.tar.gz
newlib-5bdb56f0619ef6fe6ce42d97a37d4a3558628a90.tar.bz2
* exceptions.cc (ctrl_c_handler): Don't send a signal on
CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/exceptions.cc6
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 797af10..4b21ef3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-12 Corinna Vinschen <corinna@vinschen.de>
+
+ * exceptions.cc (ctrl_c_handler): Don't send a signal on
+ CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
+
2003-06-11 Thomas Pfaff <tpfaff@gmx.net>
* thread.cc (pthread_attr_init): Return 0 if attribute is already
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index fe57c53..a602041 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)