RSC
0.16.0
|
#include "SignalWaiter.h"
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <semaphore.h>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include "langutils.h"
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... | |
Variables | |
int | rsc::misc::requestedSignals = 0 |
static std::string | rsc::misc::semaphore_name |
sem_t * | rsc::misc::semaphore |
volatile sig_atomic_t | rsc::misc::receivedSignal = 0 |