2 #ifndef WIBBLE_SYS_SIGNAL_H
3 #define WIBBLE_SYS_SIGNAL_H
21 ProcMask(
const sigset_t& newset,
int how = SIG_BLOCK)
23 if (sigprocmask(how, &newset, &oldset) < 0)
29 if (sigprocmask(SIG_SETMASK, &oldset, NULL) < 0)
37 struct sigaction oldact;
39 Action(
int signum,
const struct sigaction& act) : signum(signum)
41 if (sigaction(signum, &act, &oldact) < 0)
46 if (sigaction(signum, &oldact, NULL) < 0)
Base class for system exceptions.
Definition: exception.h:397