From c8ca8f4174c120a7e8732208eee5df3c3d61f6b5 Mon Sep 17 00:00:00 2001 From: Cam Otts Date: Wed, 19 Apr 2023 12:59:09 -0500 Subject: [PATCH] rename unix to darwin --- cmd/zrok/signals_linux.go | 14 -------------- cmd/zrok/signals_unix.go | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 cmd/zrok/signals_linux.go diff --git a/cmd/zrok/signals_linux.go b/cmd/zrok/signals_linux.go deleted file mode 100644 index 44d3bac5..00000000 --- a/cmd/zrok/signals_linux.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -import ( - "os" - "os/signal" - - "golang.org/x/sys/unix" -) - -func newSignalHandler() chan os.Signal { - signalHandler := make(chan os.Signal, 1) - signal.Notify(signalHandler, unix.SIGINT, unix.SIGTERM, unix.SIGHUP, unix.SIGQUIT) - return signalHandler -} diff --git a/cmd/zrok/signals_unix.go b/cmd/zrok/signals_unix.go index 44d3bac5..00a45270 100644 --- a/cmd/zrok/signals_unix.go +++ b/cmd/zrok/signals_unix.go @@ -1,3 +1,5 @@ +//go:build unix + package main import (