Signal handler for SEGV interrupt. More...
Public Member Functions | |
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... | |
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).
~sigSegv | ( | ) |
Destructor.
Definition at line 58 of file sigSegv.C.
References Foam::BitOps::unset().
|
static |
Activate SIGSEGV signal handler.
Definition at line 66 of file sigSegv.C.
References Foam::setHandler().
Referenced by argList::parse().
|
static |
Deactivate SIGSEGV signal handler.
Definition at line 78 of file sigSegv.C.
References Foam::resetHandler().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.