Signal handler for SEGV interupt. More...
Public Member Functions | |
sigSegv () | |
Construct null. More... | |
~sigSegv () | |
Destructor. More... | |
Static Public Member Functions | |
static void | set (const bool verbose) |
Activate SIGSEGV signal handler. More... | |
static void | unset (const bool verbose) |
Deactivate SIGSEGV signal handler. More... | |
Static Private Member Functions | |
static void | sigHandler (int) |
Handler for caught signals. More... | |
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 SEGV 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).
sigSegv | ( | ) |
Construct null.
Definition at line 62 of file sigSegv.C.
References sigSegv::set().
|
staticprivate |
Handler for caught signals.
Definition at line 40 of file sigSegv.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::jobInfo, Foam::Perr, and JobInfo::signalEnd().
|
static |
Activate SIGSEGV signal handler.
Definition at line 78 of file sigSegv.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by argList::parse(), and sigSegv::sigSegv().
|
static |
Deactivate SIGSEGV signal handler.
Definition at line 97 of file sigSegv.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
staticprivate |
|
staticprivate |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.