コード例 #1
0
bool ControlHandler() 
{ 
    LOG(MCdebugProgress, thorJob, "CTRL-C pressed");
    if (masterNode) UnregisterSelf();
    abortSlave();
    return false; 
}
コード例 #2
0
ファイル: thslavemain.cpp プロジェクト: rati/HPCC-Platform
bool ControlHandler(ahType type)
{
    if (ahInterrupt == type)
        LOG(MCdebugProgress, thorJob, "CTRL-C pressed");
    if (masterNode)
        UnregisterSelf(NULL);
    abortSlave();
    return false;
}
コード例 #3
0
ファイル: thslavemain.cpp プロジェクト: sukhong/HPCC-Platform
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;
}