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

int DaemonCore::Close_FD ( int  fd  ) 

Close an anonymous pipe or file depending on its value relative to PIPE_INDEX_OFFSET. If the fd's value is >= PIPE_INDEX_OFFSET then it is a pipe; otherwise, it is an file.

Definition at line 1948 of file daemon_core.cpp.

References Close_Pipe().

{
      int retval = -1;  
      if ( fd >= PIPE_INDEX_OFFSET ) {  
            retval = ( daemonCore->Close_Pipe ( fd ) ? 0 : -1 );
      } else {
            retval = close ( fd );
      }
      return retval;
}


Generated by  Doxygen 1.6.0   Back to index