void Command::setSignal(int signalReceived)
{
+#ifndef WIN32
if (signalReceived == SIGINT)
signals |= SIG_INT;
else if (signalReceived == SIGTERM)
signals |= SIG_USR2;
else if (signalReceived == SIGURG)
signals |= SIG_URG;
+#endif
}
void Command::processSignals()
{
+#ifndef WIN32
if (signals & SIG_INT)
{
signals = signals & ~SIG_INT;
logger->log("Command", Log::NOTICE, "URG signal"); // This is used to break from getButtonPress to process the message queue
signals = signals & ~SIG_URG;
}
+#endif
}
void Command::postMessage(Message* m)