NAME
OUX_SignalBlock -
Class to assist in the blocking of UNIX signals.
SYNOPSIS
#include <OUX/system/sigblock.hh>
class OUX_SignalBlock
{
public:
OUX_SignalBlock(int theSignal=-1);
~OUX_SignalBlock();
};
CLASS TYPE
Concrete
DESCRIPTION
An instance of the 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.
PUBLIC MEMBERS
OUX_SignalBlock(int theSignal=-1);
Causes 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();
Unblocks the signals previously
blocked by the constructor.
LIBRARY
OUX
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1993 TELSTRA CORPORATION LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED