|
cluck 1.0.1
The cluster lock service.
|
Handle the SIGINT Unix signal. More...
#include <interrupt.h>


Public Types | |
| typedef std::shared_ptr< interrupt > | pointer_t |
Public Member Functions | |
| interrupt (cluckd *c) | |
| The interrupt initialization. | |
| interrupt (interrupt const &rhs)=delete | |
| virtual | ~interrupt () override |
| interrupt & | operator= (interrupt const &rhs)=delete |
| virtual void | process_signal () override |
| Call the stop function of the cluckd object. | |
Private Attributes | |
| cluckd * | f_cluckd = nullptr |
This class is an implementation of the signalfd() specifically listening for the SIGINT signal.
Definition at line 40 of file interrupt.h.
| typedef std::shared_ptr<interrupt> cluck_daemon::interrupt::pointer_t |
Definition at line 44 of file interrupt.h.
| cluck_daemon::interrupt::interrupt | ( | cluckd * | c | ) |
The interrupt uses the signalfd() function to obtain a way to listen on incoming Unix signals.
Specifically, it listens on the SIGINT signal, which is the equivalent to the Ctrl-C.
| [in] | c | The cluck server we are listening for. |
Definition at line 55 of file interrupt.cpp.
|
delete |
|
overridevirtual |
Definition at line 64 of file interrupt.cpp.
|
overridevirtual |
When this function is called, the signal was received and thus we are asked to quit as soon as possible.
Definition at line 74 of file interrupt.cpp.
References f_cluckd, and cluck_daemon::cluckd::stop().
|
private |
Definition at line 56 of file interrupt.h.
Referenced by process_signal().
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.