bool ControlHandler() { LOG(MCdebugProgress, thorJob, "CTRL-C pressed"); if (masterNode) UnregisterSelf(); abortSlave(); return false; }
bool ControlHandler(ahType type) { if (ahInterrupt == type) LOG(MCdebugProgress, thorJob, "CTRL-C pressed"); if (masterNode) UnregisterSelf(NULL); abortSlave(); return false; }
bool ControlHandler(ahType type) { if (ahInterrupt == type) LOG(MCdebugProgress, thorJob, "CTRL-C detected"); else if (!jobListenerStopped) LOG(MCdebugProgress, thorJob, "SIGTERM detected"); bool unregOK = false; if (!jobListenerStopped) { if (masterNode) unregOK = UnregisterSelf(NULL); abortSlave(); } return !unregOK; }