Esempio n. 1
0
bool ControlHandler() 
{ 
    LOG(MCdebugProgress, thorJob, "CTRL-C pressed");
    if (masterNode) UnregisterSelf();
    abortSlave();
    return false; 
}
Esempio n. 2
0
bool ControlHandler(ahType type)
{
    if (ahInterrupt == type)
        LOG(MCdebugProgress, thorJob, "CTRL-C pressed");
    if (masterNode)
        UnregisterSelf(NULL);
    abortSlave();
    return false;
}
Esempio n. 3
0
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;
}