From: prascle Date: Thu, 25 Nov 2004 12:07:54 +0000 (+0000) Subject: PR: Allow SALOME_SessionServer kill when launch in an xterm: use default handler... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ae0e070f1ea6690d3b14d936d55b869bf082167;p=modules%2Fkernel.git PR: Allow SALOME_SessionServer kill when launch in an xterm: use default handler for SIGHUP to avoid catch. --- diff --git a/src/CASCatch/CASCatch_SignalsHandler.cxx b/src/CASCatch/CASCatch_SignalsHandler.cxx index 68cbb04bc..d18c1af6b 100644 --- a/src/CASCatch/CASCatch_SignalsHandler.cxx +++ b/src/CASCatch/CASCatch_SignalsHandler.cxx @@ -20,10 +20,14 @@ #include "CASCatch_SignalsHandler.h" +#include #include using namespace std; CASCatch_SignalsHandler::CASCatch_SignalsHandler(bool theFloatingSignal) { OSD::SetSignal(theFloatingSignal); + // To allow application kill when used in xterm, one must use default behavior + // with SIGHUP signal + Utils_SignalsHandler::SetSigHandler(SIGHUP,SIG_DFL); }