Signal handler for INT interrupt. More...
Public Member Functions | |
sigInt () | |
~sigInt () | |
Static Public Member Functions | |
static void | set (bool verbose=false) |
static void | unset (bool verbose=false) |
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).
sigInt | ( | ) |
Definition at line 49 of file sigInt.C.
References Foam::BitOps::set().
~sigInt | ( | ) |
Definition at line 57 of file sigInt.C.
References Foam::BitOps::unset().
|
static |
Definition at line 65 of file sigInt.C.
References Foam::setHandler().
Referenced by argList::parse().
|
static |
Definition at line 77 of file sigInt.C.
References Foam::resetHandler().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.