8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 06:43:04 +01:00

Backported fix for CORE-2077: Signal TERM in CS 2.1 for Linux

This commit is contained in:
alexpeshkoff 2008-09-15 11:46:25 +00:00
parent 63e2610d3a
commit 316641f4fc

View File

@ -590,6 +590,7 @@ namespace
{
proc2 = ISC_signal(2, Handler2, 0);
proc15 = ISC_signal(15, Handler15, 0);
gds__register_cleanup(releaseCtrlCHandler, 0);
}
catch (...)
{
@ -597,11 +598,14 @@ namespace
}
}
static void propagateKill()
static void releaseCtrlCHandler(void*)
{
ISC_signal_cancel(2, Handler2, 0);
ISC_signal_cancel(15, Handler15, 0);
}
static void propagateKill()
{
// if signal is not processed by someone else, exit now
if (!(killed == 2 ? proc2 : proc15))
{