Sets up a given signal handler and restores the old handler when going out of scope.
More...
#include <signal.hpp>
|
const int | sig |
| The signal this handler is handling.
|
|
const sig_t | handler |
| The previous signal handler.
|
|
Sets up a given signal handler and restores the old handler when going out of scope.
◆ Signal()
sys::sig::Signal::Signal |
( |
int const |
sig, |
|
|
sig_t const |
handler |
|
) |
| |
|
inline |
Sets up the given handler.
- Parameters
-
sig | The signal to set a handler for |
handler | The signal handling function |
- Exceptions
-
sys::sc_error<error> | Throws with the errno of signal() |
The documentation for this class was generated from the following file: