This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
NT Shutdown Handling Patch
- To: Cygwin-Patches <cygwin-patches at sources dot redhat dot com>
- Subject: NT Shutdown Handling Patch
- From: Jason Tishler <jason at tishler dot net>
- Date: Wed, 18 Jul 2001 16:55:58 -0400
- Organization: Dot Hill Systems Corp.
The attached patch changes ctrl_c_handler() to send SIGTERM (instead
of SIGHUP) when NT shuts down (or a close event is received). See the
following for the motivation:
http://www.cygwin.com/ml/cygwin/2001-07/msg00827.html
http://www.cygwin.com/ml/cygwin/2001-07/msg01060.html
Thanks,
Jason
--
Jason Tishler
Director, Software Engineering Phone: 732.264.8770 x235
Dot Hill Systems Corp. Fax: 732.264.8798
82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
Index: exceptions.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/exceptions.cc,v
retrieving revision 1.91
diff -u -p -r1.91 exceptions.cc
--- exceptions.cc 2001/06/28 02:19:57 1.91
+++ exceptions.cc 2001/07/18 18:39:18
@@ -900,7 +900,7 @@ ctrl_c_handler (DWORD type)
for each Cygwin process window that's open when the computer
is shut down or console window is closed. */
{
- sig_send (NULL, SIGHUP);
+ sig_send (NULL, SIGTERM);
return FALSE;
}
tty_min *t = cygwin_shared->tty.get_tty (myself->ctty);
Wed Jul 18 16:37:39 2001 Jason Tishler <jason@tishler.net>
* exceptions.cc (ctrl_c_handler): Send SIGTERM instead of SIGHUP when
CTRL_CLOSE_EVENT or CTRL_SHUTDOWN_EVENT is received.