diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2023-08-13 14:01:12 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2023-08-13 14:04:19 +0100 |
| commit | a7b06fd8c650faa4b272625eb9607749c52ec6f5 (patch) | |
| tree | 734c208c54f04726d0378868dc4746e88b0be4da /main.go | |
| parent | 07276515b0593331720ee4fe307b65d5cfeb7cbf (diff) | |
Use syscall.SIGTERM
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
