Go to the documentation of this file.
7 #ifndef _POWERDXX_SYS_SIGNAL_HPP_
8 #define _POWERDXX_SYS_SIGNAL_HPP_
60 if (this->handler == SIG_ERR) {
69 ::signal(this->sig, this->handler);
Can be thrown by syscall function wrappers if the function returned with an error.
Definition: error.hpp:26
The domain error type.
Definition: signal.hpp:24
Wrappers around native system interfaces.
~Signal()
Restore previous signal handler.
Definition: signal.hpp:68
Signal(int const sig, sig_t const handler)
Sets up the given handler.
Definition: signal.hpp:58
void(*)(int) sig_t
Convenience type for signal handlers.
Definition: signal.hpp:29
const sig_t handler
The previous signal handler.
Definition: signal.hpp:45
Sets up a given signal handler and restores the old handler when going out of scope.
Definition: signal.hpp:35
const int sig
The signal this handler is handling.
Definition: signal.hpp:40
Provides system call error handling.