diff --git a/plugins/meta/dnsname/service.go b/plugins/meta/dnsname/service.go index 6922ad462106e0e00cb84d2acbcf910c22af78a2..3156c1f8bcd07e09a7e9839c6462423a221ecb1e 100644 --- a/plugins/meta/dnsname/service.go +++ b/plugins/meta/dnsname/service.go @@ -10,7 +10,6 @@ import ( "strings" "syscall" - "github.com/pkg/errors" "golang.org/x/sys/unix" ) @@ -89,9 +88,6 @@ func (d dnsNameFile) getProcess() (*os.Process, error) { if err != nil { return nil, err } - if _, err := os.Stat(fmt.Sprintf("/proc/%d/", pid)); os.IsNotExist(err) { - return nil, errors.Wrapf(err, "dnsmasq process with PID %d does not exist", pid) - } return os.FindProcess(pid) }