NT Shutdown Handling Patch

Kazuhiro Fujieda fujieda@jaist.ac.jp
Wed Jul 18 15:03:00 GMT 2001

>>> 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
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  Center for Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

More information about the Cygwin-patches mailing list