def METHOD_NAME(self, pidfilename):
    if os.path.exists(pidfilename):
        try:
            return os.readlink(
                "/proc/%s/exe" % self.read_file_oneline(pidfilename)
            ).endswith("dhclient")
        except OSError as e:
            try:
                if e.errno == errno.EACCES:
                    return os.path.exists("/proc/%s" % self.read_file_oneline(pidfilename))
            except Exception:
                return False
        except Exception:
            return False
    return False