Signal handler for INT interupt. More...
Public Member Functions | |
sigInt () | |
Construct null. More... | |
~sigInt () | |
Destructor. More... | |
Static Public Member Functions | |
static void | set (const bool verbose) |
Activate SIGINT signal handler. More... | |
static void | unset (const bool verbose) |
Deactivate SIGINT signal handler. More... | |
Static Private Member Functions | |
static void | sigHandler (int) |
Static Private Attributes | |
static struct sigaction | oldAction_ |
Saved old signal trapping setting. More... | |
static bool | sigActive_ = false |
Flag to indicate signal trapping is enabled. More... | |
Signal handler for INT interupt.
The standard interupt 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).
sigInt | ( | ) |
Construct null.
Definition at line 60 of file sigInt.C.
References sigInt::set().
|
staticprivate |
Definition at line 40 of file sigInt.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::jobInfo, and JobInfo::signalEnd().
|
static |
Activate SIGINT signal handler.
Definition at line 76 of file sigInt.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by argList::parse(), and sigInt::sigInt().
|
static |
Deactivate SIGINT signal handler.
Definition at line 95 of file sigInt.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
staticprivate |
|
staticprivate |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.