Logo Search packages:      
Sourcecode: condor version File versions  Download package

void DaemonCore::clearSession ( pid_t  pid  ) 

clear all sessions associated with the child

Definition at line 9230 of file daemon_core.cpp.

Referenced by Shutdown_Fast(), and Shutdown_Graceful().

{
      // this will clear any incoming sessions associated with the PID, even
      // if it isn't a daemoncore child (like the stupid old shadow) and
      // therefor has no command sock.
      if(sec_man) {
            sec_man->invalidateByParentAndPid(sec_man->my_unique_id(), pid);
      }

      // we also need to clear any outgoing sessions associated w/ this pid.
    PidEntry * pidentry = NULL;

    if ( pidTable->lookup(pid,pidentry) != -1 ) {
        if (sec_man && pidentry) {
            sec_man->invalidateHost(pidentry->sinful_string);
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index