util/jobutil.cc
/// Check to see if this pid exists by sending it a 0 signal.  Return
/// true if it seems to exist (doesn't mean it is in a good state).
///
Check to see if this pid exists by sending it a 0 signal.  Return
true if it seems to exist (doesn't mean it is in a good state).
Check to see if this pid exists by sending it a 0 signal . Return true if it seems to exist ( doesn ' t mean it is in a good state ) .
bool is_live_pid( pid_t pid )
{
    if (0==kill(pid,0)) {
        return true;
    }
    if (errno == ESRCH) {
        return false;
    }
    return true;
}
bool is_live_pid ( pid_t pid ) { if ( 0 == kill ( pid , 0 ) ) { return true ; } if ( errno == ESRCH ) { return false ; } return true ; }
Check to see if this pid exists by sending it a 0 signal.
Check to see if this pid exists by sending it a 0 signal .