#include <OUX/system/sigblock.hh> class OUX_SignalBlock {
public:
OUX_SignalBlock(int theSignal=-1);
~OUX_SignalBlock();
};
OUX_SignalBlock
class can be created on
the stack, to cause blocking of the specified signals within
the scope of that code block. The options are to block either
one signal explicitly, all signals, or no signals. Note that
SIGABRT
will not be blocked if a request is made to block
all signals.
OUX_SignalBlock(int theSignal=-1);
theSignal
to be blocked.
If theSignal
is 0
, no signals
will be blocked. The special value
of -1
for theSignal
will result
in all signals, with the exception
of SIGABRT
being blocked. theSignal
has the default value of -1
, ie.,
block all signals.
~OUX_SignalBlock();