]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: Allow SALOME_SessionServer kill when launch in an xterm: use default handler...
authorprascle <prascle>
Thu, 25 Nov 2004 12:07:54 +0000 (12:07 +0000)
committerprascle <prascle>
Thu, 25 Nov 2004 12:07:54 +0000 (12:07 +0000)
src/CASCatch/CASCatch_SignalsHandler.cxx

index 68cbb04bcff0391aefc6b330dd78d3ed72173a46..d18c1af6bda146db932071829073e8667127fcd6 100644 (file)
 
 
 #include "CASCatch_SignalsHandler.h"
+#include <signal.h>
 #include <OSD.hxx>
 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);
 }