From 466216e4496ab3346a50353b522af141a37b6a32 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 4 Jul 2021 15:48:04 +0100 Subject: Remove external dependency from the example --- example/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'example') 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{} -- cgit v1.2.3-70-g09d2