Back to index

salome-gui  6.5.0
Defines | Typedefs | Functions | Variables
CASCatch_CatchSignals.cxx File Reference
#include "CASCatch_CatchSignals.hxx"
#include "CASCatch_Failure.hxx"
#include "CASCatch_ErrorHandler.hxx"
#include <TCollection_AsciiString.hxx>
#include <OSD.hxx>
#include <OSD_WhoAmI.hxx>
#include <OSD_SIGHUP.hxx>
#include <OSD_SIGINT.hxx>
#include <OSD_SIGQUIT.hxx>
#include <OSD_SIGILL.hxx>
#include <OSD_SIGKILL.hxx>
#include <OSD_SIGBUS.hxx>
#include <OSD_SIGSEGV.hxx>
#include <OSD_SIGSYS.hxx>
#include <exception.h>
#include <signal.h>
#include <sys/signal.h>

Go to the source code of this file.

Defines

#define MAX_HANDLER_NUMBER   6

Typedefs

typedef voidACT_SIGIO_HANDLER )(void)
typedef void(* SIG_PFV )(int)

Functions

static void Handler (const OSD_Signals theSig, const OSD_Signals)
 Private -.

Variables

ACT_SIGIO_HANDLERADR_ACT_SIGIO_HANDLER = NULL

Define Documentation

#define MAX_HANDLER_NUMBER   6

Definition at line 32 of file CASCatch_CatchSignals.cxx.


Typedef Documentation

Definition at line 68 of file CASCatch_CatchSignals.cxx.

typedef void(* SIG_PFV)(int)

Definition at line 72 of file CASCatch_CatchSignals.cxx.


Function Documentation

static void Handler ( const OSD_Signals  theSig,
const OSD_Signals   
) [static]

Private -.

universal handler for signals

Definition at line 111 of file CASCatch_CatchSignals.cxx.

{
  sigset_t set;
  sigemptyset(&set);
  sigaddset(&set, theSig);
  sigprocmask(SIG_UNBLOCK, &set, NULL) ;

  TCollection_AsciiString aMessage(theSig);  
  aMessage+=" signal detected";
 
  CASCatch_Failure::Raise(aMessage.ToCString());
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 70 of file CASCatch_CatchSignals.cxx.