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

int DaemonCore::Suspend_Process ( pid_t  pid  ) 

Not_Yet_Documented

Parameters:
pid Not_Yet_Documented
Returns:
Not_Yet_Documented

Definition at line 5174 of file daemon_core.cpp.

{
      dprintf(D_DAEMONCORE,"called DaemonCore::Suspend_Process(%d)\n",
            pid);

      if ( pid == ppid )
            return FALSE;     // cannot suspend our parent

#if defined(WIN32)
      return windows_suspend(pid);
#else
      priv_state priv = set_root_priv();
      int status = kill(pid, SIGSTOP);
      set_priv(priv);
      return (status >= 0);         // return 1 if kill succeeds, 0 otherwise
#endif
}


Generated by  Doxygen 1.6.0   Back to index