aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-06-05 18:21:24 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2022-06-05 18:21:24 +0100
commitab3a3691d1e272d603768a983647778eb8e4749e (patch)
tree8044fceaed6d363487dabd33fb9ab55526207af0 /main.go
parentb52c712770dbc9b0b0adb8a106427fa59a9de7f8 (diff)
Use SIGTERM definition from syscall
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
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() {