RSC
0.15.1
|
#include "SignalWaiter.h"
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <semaphore.h>
#include <boost/format.hpp>
Go to the source code of this file.
Namespaces | |
rsc | |
rsc::misc | |
Functions | |
void | rsc::misc::handler (int signal) |
void | rsc::misc::throwRuntimeError (int errorNumber, const std::string &description) |
void | rsc::misc::initSignalWaiter (int signals=INTERRUPT_REQUESTED|TERMINATE_REQUESTED) |
Prepare waiting for signals. More... | |
Signal | rsc::misc::mappedSignal () |
Signal | rsc::misc::waitForSignal () |
Block until one of the signals specified in initSignalWaiter arrives, then return the signal. More... | |
Signal | rsc::misc::lastArrivedSignal () |
Returns the last signal that has arrived at this process or Signal::NO_SIGNAL in case no signal arrived so far. More... | |
int | rsc::misc::suggestedExitCode (Signal signal) |
Return suggested exit code for exiting the program after receiving signal signal. More... | |