* exceptions.cc (ctrl_c_handler): Don't send a signal on
CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
This commit is contained in:
parent
00e6660b0d
commit
5bdb56f061
|
@ -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>
|
2003-06-11 Thomas Pfaff <tpfaff@gmx.net>
|
||||||
|
|
||||||
* thread.cc (pthread_attr_init): Return 0 if attribute is already
|
* thread.cc (pthread_attr_init): Return 0 if attribute is already
|
||||||
|
|
|
@ -932,7 +932,13 @@ ctrl_c_handler (DWORD type)
|
||||||
is shut down or console window is closed. */
|
is shut down or console window is closed. */
|
||||||
if (type == CTRL_SHUTDOWN_EVENT)
|
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);
|
sig_send (NULL, SIGTERM);
|
||||||
|
#endif
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (type == CTRL_CLOSE_EVENT)
|
if (type == CTRL_CLOSE_EVENT)
|
||||||
|
|
Loading…
Reference in New Issue