Loading...
Searching...
No Matches
sigInt Class Reference

Signal handler for INT interrupt. More...

#include <sigInt.H>

Public Member Functions

 sigInt ()
 Default construct.
 ~sigInt ()
 Destructor.

Static Public Member Functions

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

Detailed Description

Signal handler for INT 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

Definition at line 55 of file sigInt.H.

Constructor & Destructor Documentation

◆ sigInt()

sigInt ( )

Default construct.

◆ ~sigInt()

~sigInt ( )

Destructor.

Member Function Documentation

◆ set()

void set ( bool verbose = false)
static

Activate SIGINT signal handler.

Referenced by argList::parse().

Here is the caller graph for this function:

◆ unset()

void unset ( bool verbose = false)
static

Deactivate SIGINT signal handler.


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