From 65de188423b88a3b7706b7d2d1fd01e70e08f4f5 Mon Sep 17 00:00:00 2001 From: Vladimir Bauer Date: Thu, 31 Oct 2019 16:07:22 +0500 Subject: [PATCH] don't use syscall directly --- dnscrypt-proxy/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dnscrypt-proxy/main.go b/dnscrypt-proxy/main.go index 797eab59..fc356cdc 100644 --- a/dnscrypt-proxy/main.go +++ b/dnscrypt-proxy/main.go @@ -8,7 +8,6 @@ import ( "math/rand" "os" "os/signal" - "syscall" "github.com/facebookgo/pidfile" "github.com/jedisct1/dlog" @@ -141,7 +140,7 @@ func (app *App) appMain() { func (app *App) signalWatch() { quit := make(chan os.Signal, 1) - signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM) + signal.Notify(quit, os.Interrupt, os.Kill) go func() { <-quit signal.Stop(quit)