aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-04-23 18:21:33 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-04-23 18:21:33 +0100
commit980a51f1a7d40bb419cd3ac4ab3c383b98265931 (patch)
tree47dce9f50225939c70dea0c83a640a3f7cedb1a7 /cmd
parentc21e6e98325986e20b59d14775f26b5dc22c9faa (diff)
Use golang.org/x/sys/unix instead of syscall
See https://golang.org/s/go1.4-syscall for more details.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/go-import-redirect/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/go-import-redirect/main.go b/cmd/go-import-redirect/main.go
index 064e932..f573bc8 100644
--- a/cmd/go-import-redirect/main.go
+++ b/cmd/go-import-redirect/main.go
@@ -15,9 +15,10 @@ import (
"os"
"os/signal"
"path"
- "syscall"
"time"
+ "golang.org/x/sys/unix"
+
"go.awhk.org/go-import-redirect/internal"
)
@@ -45,7 +46,7 @@ func main() {
srv := http.Server{Handler: mux}
done := make(chan os.Signal, 1)
- signal.Notify(done, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
+ signal.Notify(done, os.Interrupt, unix.SIGTERM)
go func() {
var (