def _can_read_command_line(pid):
    """Returns True if the commandline arguments for the specified process can be read.

    @param pid: The id of the process
    @type pid: int
    @return: True if it can be read.
    @rtype: bool
    """
    return os.path.isfile('/proc/%d/cmdline' % pid)
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_posix.py/_can_read_command_line/original