aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go.mod1
-rw-r--r--main.go4
2 files changed, 2 insertions, 3 deletions
diff --git a/go.mod b/go.mod
index 83deb6b..732c1fe 100644
--- a/go.mod
+++ b/go.mod
@@ -7,6 +7,5 @@ require (
github.com/gorilla/mux v1.8.0
github.com/stretchr/testify v1.7.0
go.awhk.org/gosdd v0.2.0
- golang.org/x/sys v0.0.0-20210218155724-8ebf48af031b
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
)
diff --git a/main.go b/main.go
index b1a29a1..bb210c9 100644
--- a/main.go
+++ b/main.go
@@ -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)