From a7b06fd8c650faa4b272625eb9607749c52ec6f5 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 13 Aug 2023 14:01:12 +0100 Subject: Use syscall.SIGTERM --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index b1a29a1..bb210c9 100644 --- a/main.go +++ b/main.go @@ -11,11 +11,11 @@ import ( "net/http" "os" "os/signal" + "syscall" "time" "github.com/gorilla/handlers" "github.com/gorilla/mux" - "golang.org/x/sys/unix" "go.awhk.org/fwdsms/pkg/twilio" "go.awhk.org/gosdd" @@ -39,7 +39,7 @@ func main() { } done := make(chan os.Signal, 1) - signal.Notify(done, os.Interrupt, unix.SIGTERM) + signal.Notify(done, os.Interrupt, syscall.SIGTERM) sms := make(chan twilio.SMS) -- cgit v1.2.3-70-g09d2