summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:48:04 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:48:04 +0100
commit466216e4496ab3346a50353b522af141a37b6a32 (patch)
treed29330e9c836a2ef295a8bc09774803650d00570 /example
parentbaf535676025303f4e713fdf9f45d2d5a024cf6c (diff)
Remove external dependency from the example
Diffstat (limited to 'example')
-rw-r--r--example/main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/main.go b/example/main.go
index 9cd0d05..2cfc85c 100644
--- a/example/main.go
+++ b/example/main.go
@@ -15,8 +15,7 @@ import (
"os/signal"
"strings"
"sync"
-
- "golang.org/x/sys/unix"
+ "syscall"
"go.awhk.org/gosdd"
)
@@ -52,7 +51,7 @@ func main() {
func listenAll(fds []*os.File) {
sig := make(chan os.Signal, 1)
- signal.Notify(sig, os.Interrupt, unix.SIGTERM)
+ signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
srvs := make([]echoServer, 0, len(fds))
wg := &sync.WaitGroup{}