 |
Kea
1.5.0
|
Go to the documentation of this file.
11 #include <boost/function.hpp>
12 #include <boost/noncopyable.hpp>
13 #include <boost/shared_ptr.hpp>
102 SignalSet(
const int sig0,
const int sig1);
111 SignalSet(
const int sig0,
const int sig1,
const int sig2);
127 void add(
const int sig);
154 void remove(
const int sig);
203 void erase(
const int sig);
210 void insert(
const int sig);
218 void maskSignals(
const int mask)
const;
230 void unblock()
const;
233 std::set<int> local_signals_;
249 #endif // SIGNAL_SET_H
static void clearOnReceiptHandler()
Unregisters the onreceipt signal handler.
boost::function< bool(int signum)> BoolSignalHandler
Pointer to a signal handling function which returns bool result.
void remove(const int sig)
Uninstalls signal handler for a specified signal.
int getNext() const
Returns a code of the next received signal.
std::set< int > SigIntSet
Defines a set of integer signal identifiers: SIGHUP, SIGTERM...
boost::shared_ptr< SigIntList > SigIntListPtr
Pointer to a list of signal identifiers.
boost::function< void(int signum)> SignalHandler
Pointer to the signal handling function.
SignalSetError(const char *file, size_t line, const char *what)
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void add(const int sig)
Installs the handler for the specified signal.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
boost::shared_ptr< SignalSet > SignalSetPtr
Pointer to the isc::util::SignalSet.
SignalSet(const int sig0)
Constructor installing one signal.
static void setOnReceiptHandler(BoolSignalHandler handler)
Registers a handler as the onreceipt signal handler.
void clear()
Uninstalls all signals.
Exception thrown when the isc::util::SignalSet class experiences an error.
static bool invokeOnReceiptHandler(int sig)
Invokes the onreceipt handler if it exists.
std::list< int > SigIntList
Defines a list of integer signal identifiers: SIGHUP, SIGTERM...
boost::shared_ptr< SigIntSet > SigIntSetPtr
Pointer to a set of signal identifiers.
Represents a collection of signals handled in a customized way.
void handleNext(SignalHandler signal_handler)
Calls a handler for the next received signal.