sigSegv Class Reference

Signal handler for SEGV interrupt. More...

Public Member Functions

 sigSegv ()
 Construct null. More...
 
 ~sigSegv ()
 Destructor. More...
 
 sigSegv ()
 Construct null. More...
 
 ~sigSegv ()
 Destructor. More...
 

Static Public Member Functions

static void set (bool verbose=false)
 Activate SIGSEGV signal handler. More...
 
static void unset (bool verbose=false)
 Deactivate SIGSEGV signal handler. More...
 
static void set (bool verbose=false)
 Activate SIGSEGV signal handler. More...
 
static void unset (bool verbose=false)
 Deactivate SIGSEGV signal handler. More...
 

Detailed Description

Signal handler for SEGV interrupt.

The standard interrupt handler is overridden to ensure that the runningJob file is removed. Can be used either directly through the static member functions or through the scope of the object (constructor sets trapping; destructor restores original).

See also
Foam::JobInfo
Source files

The standard interrupt handler is overridden to ensure that the runningJob file is removed. Can be used either directly through the static member functions or through the scope of the object (constructor sets trapping; destructor restores original).

See also
Foam::JobInfo
Source files

Definition at line 58 of file sigSegv.H.

Constructor & Destructor Documentation

◆ sigSegv() [1/2]

sigSegv ( )

Construct null.

Definition at line 57 of file sigSegv.C.

◆ ~sigSegv() [1/2]

~sigSegv ( )

Destructor.

Definition at line 65 of file sigSegv.C.

◆ sigSegv() [2/2]

sigSegv ( )

Construct null.

◆ ~sigSegv() [2/2]

~sigSegv ( )

Destructor.

Member Function Documentation

◆ set() [1/2]

void set ( bool  verbose = false)
static

Activate SIGSEGV signal handler.

Definition at line 73 of file sigSegv.C.

References Foam::setHandler().

Here is the call graph for this function:

◆ unset() [1/2]

void unset ( bool  verbose = false)
static

Deactivate SIGSEGV signal handler.

Definition at line 85 of file sigSegv.C.

References Foam::resetHandler().

Here is the call graph for this function:

◆ set() [2/2]

static void set ( bool  verbose = false)
static

Activate SIGSEGV signal handler.

◆ unset() [2/2]

static void unset ( bool  verbose = false)
static

Deactivate SIGSEGV signal handler.


The documentation for this class was generated from the following files: