cooling/cooling.cc
/// This will kill any rsked owned by this process or any rogue copy
/// that can be identified by its pid file.  Shared memory is released.
/// Any auxiliary processes will also be killed.
///
This will kill any rsked owned by this process or any rogue copy
that can be identified by its pid file.  Shared memory is released.
Any auxiliary processes will also be killed.
This will kill any rsked owned by this process or any rogue copy that can be identified by its pid file . Shared memory is released . Any auxiliary processes will also be killed .
void Cooling::terminate_rsked()
{
    if (m_rsked_cm->running()) {
        LOG_INFO(Lgr) << "Terminate running rsked and related processes";
        m_rsked_cm->kill_child();      
    }
    pid_t r_pid = is_running("rsked");
    if (r_pid) {
        int rc = kill(r_pid, SIGTERM);
        if (0==rc) {
            LOG_WARNING(Lgr) << "signalled a rogue rsked to terminate";
        } else {
            LOG_ERROR(Lgr) << "failed to kill rsked pid=" << r_pid;
        }
    }
    kill_aux_processes();
    teardown_shm();
}
void Cooling :: terminate_rsked ( ) { if ( m_rsked_cm -> running ( ) ) { LOG_INFO ( Lgr ) << " " ; m_rsked_cm -> kill_child ( ) ; } pid_t r_pid = is_running ( " " ) ; if ( r_pid ) { int rc = kill ( r_pid , SIGTERM ) ; if ( 0 == rc ) { LOG_WARNING ( Lgr ) << " " ; } else { LOG_ERROR ( Lgr ) << " " << r_pid ; } } kill_aux_processes ( ) ; teardown_shm ( ) ; }
This will kill any rsked owned by this process or any rogue copy
that can be identified by its pid file.
This will kill any rsked owned by this process or any rogue copy that can be identified by its pid file .
// kill any rsked child process of this application // should not need to force // kill any rogue rsked -- unlikely but not impossible // possibly died by itself before we could kill it // clobber any rogue players // release shared memory