This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: NT Shutdown Handling Patch
- To: cygwin-patches at cygwin dot com
- Subject: Re: NT Shutdown Handling Patch
- From: Kazuhiro Fujieda <fujieda at jaist dot ac dot jp>
- Date: 19 Jul 2001 07:03:49 +0900
- References: <20010718165558.G608@dothill.com>
- Reply-To: cygwin-patches at cygwin dot com
>>> On Wed, 18 Jul 2001 16:55:58 -0400
>>> Jason Tishler <jason@tishler.net> said:
> 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
My daemon patch includes the change against ctrl_c_handler
similar to yours. In my patch, the ctrl_c_handler send SIGTERM
in response to CTRL_SHUTDOWN_EVENT, while send SIGHUP to
terminate shells in response to CTRL_CLOSE_EVENT.
Please see
http://cygwin.com/ml/cygwin-patches/2001-q3/msg00010.html
____
| AIST Kazuhiro Fujieda <fujieda@jaist.ac.jp>
| HOKURIKU Center for Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology