def read_pid(pid_file):
    """
    Read PID from given PID file.

    :param str pidfile: Name of the PID file to read from.
    :return: PID from given PID file.
    :rtype: int
    """
    with open(pid_file, 'r') as pidfd:
        return int(pidfd.readline().strip())