diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 15:48:04 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 15:48:04 +0100 |
| commit | 466216e4496ab3346a50353b522af141a37b6a32 (patch) | |
| tree | d29330e9c836a2ef295a8bc09774803650d00570 /example | |
| parent | baf535676025303f4e713fdf9f45d2d5a024cf6c (diff) | |
Remove external dependency from the example
Diffstat (limited to 'example')
| -rw-r--r-- | example/main.go | 5 |
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{} |
