sigQuit Class Reference

Signal handler for QUIT interrupt. More...

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Signal handler for QUIT 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 sigQuit.H.

Constructor & Destructor Documentation

◆ sigQuit() [1/2]

sigQuit ( )

Construct null.

Definition at line 60 of file sigQuit.C.

◆ ~sigQuit() [1/2]

~sigQuit ( )

Destructor.

Definition at line 68 of file sigQuit.C.

◆ sigQuit() [2/2]

sigQuit ( )

Construct null.

◆ ~sigQuit() [2/2]

~sigQuit ( )

Destructor.

Member Function Documentation

◆ set() [1/2]

void set ( bool  verbose = false)
static

Activate SIGQUIT signal handler.

Definition at line 76 of file sigQuit.C.

References Foam::setHandler().

Here is the call graph for this function:

◆ unset() [1/2]

void unset ( bool  verbose = false)
static

Deactivate SIGQUIT signal handler.

Definition at line 88 of file sigQuit.C.

References Foam::resetHandler().

Here is the call graph for this function:

◆ set() [2/2]

static void set ( bool  verbose = false)
static

Activate SIGQUIT signal handler.

◆ unset() [2/2]

static void unset ( bool  verbose = false)
static

Deactivate SIGQUIT signal handler.


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