def is_process_alive(pid):
try:<EOL><INDENT>os.kill(pid, <NUM_LIT:0>)<EOL><DEDENT>except OSError:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Check whether the process with the given pid is still alive.

    Args:
        pid (int): process ID

    Returns:
        bool: False if the process is not alive or don't have permission to check, True otherwise.