From 49460f1d6f269baa58ae189726f7cd9aabf0a2c8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 9 Dec 2019 13:34:14 +0100 Subject: [PATCH] pidfile.Write() can fail if no pid file was configured, it's ok --- dnscrypt-proxy/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dnscrypt-proxy/main.go b/dnscrypt-proxy/main.go index c3b862fb..33141b06 100644 --- a/dnscrypt-proxy/main.go +++ b/dnscrypt-proxy/main.go @@ -126,9 +126,7 @@ func (app *App) AppMain() { } app.quit = make(chan struct{}) app.wg.Add(1) - if err := pidfile.Write(); err != nil { - dlog.Critical(err) - } + _ = pidfile.Write() app.proxy.StartProxy() <-app.quit dlog.Notice("Quit signal received...")