environment/lib/python2.7/site-packages/psutil/_psposix.py
def pid_exists(pid):
    """Check whether pid exists in the current process table."""
    if not isinstance(pid, int):
        raise TypeError('an integer is required')
    if pid < 0:
        return False
    try:
        os.kill(pid, 0)
    except OSError:
        e = sys.exc_info()[1]
        return e.errno == errno.EPERM
    else:
        return True
def pid_exists(pid):
    """Check whether pid exists in the current process table."""
    if not isinstance(pid, int):
        raise TypeError('an integer is required')
    if pid < 0:
        return False
    try:
        os.kill(pid, 0)
    except OSError:
        e = sys.exc_info()[1]
        return e.errno == errno.EPERM
    else:
        return True
def pid_exists ( pid ) : if not isinstance ( pid , int ) : raise TypeError ( 'an integer is required' ) if pid < 0 : return False try : os . kill ( pid , 0 ) except OSError : e = sys . exc_info ( ) [ 1 ] return e . errno == errno . EPERM else : return True
Check whether pid exists in the current process table.
Check whether pid exists in the current process table .