libmoost
|
#include <signal_handler.h>
Classes | |
class | impl |
Public Member Functions | |
signal_handler (const boost::function< void(int)> &callback) | |
Private Attributes | |
boost::shared_ptr< impl > | m_pimpl |
Intercepts SIGHUP, SIGTERM, and SIGINT signals and passes them to the provided callback function.
Definition at line 42 of file signal_handler.h.
signal_handler::signal_handler | ( | const boost::function< void(int)> & | callback | ) |
Constructs a signal_handler
callback | the function to call when a signal is intercepted |
callback is void(int) and takes the signal recieved, or -1 if there was an error waiting for a signal
Definition at line 60 of file signal_handler.cpp.
boost::shared_ptr<impl> moost::signal::signal_handler::m_pimpl [private] |
Definition at line 46 of file signal_handler.h.