diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-06-05 18:21:24 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-06-05 18:21:24 +0100 |
| commit | ab3a3691d1e272d603768a983647778eb8e4749e (patch) | |
| tree | 8044fceaed6d363487dabd33fb9ab55526207af0 /main.go | |
| parent | b52c712770dbc9b0b0adb8a106427fa59a9de7f8 (diff) | |
Use SIGTERM definition from syscall
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() { |
