From ab3a3691d1e272d603768a983647778eb8e4749e Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 5 Jun 2022 18:21:24 +0100 Subject: Use SIGTERM definition from syscall --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 10e1703..00c0601 100644 --- a/main.go +++ b/main.go @@ -14,10 +14,9 @@ import ( "os" "os/signal" "regexp" + "syscall" "time" - "golang.org/x/sys/unix" - "go.awhk.org/gosdd" ) @@ -32,7 +31,7 @@ func main() { flag.Parse() done := make(chan os.Signal, 1) - signal.Notify(done, os.Interrupt, unix.SIGTERM) + signal.Notify(done, os.Interrupt, syscall.SIGTERM) srv := http.Server{Handler: &redirector{regexp.MustCompile(*from), *to, *vcs}} go func() { -- cgit v1.2.3-70-g09d2