From 4ae0e070f1ea6690d3b14d936d55b869bf082167 Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 25 Nov 2004 12:07:54 +0000 Subject: [PATCH] PR: Allow SALOME_SessionServer kill when launch in an xterm: use default handler for SIGHUP to avoid catch. --- src/CASCatch/CASCatch_SignalsHandler.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.39.2