This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

NT Shutdown Handling Patch


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]