Handle windows signals

Since windows does not require a signal handler, we just block on the
channel forever so that it does not exit.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2018-07-26 11:24:20 -04:00
parent f15a1170d3
commit 9d72b4543b

View File

@ -37,7 +37,6 @@ import (
// setupSignals creates a new signal handler for all signals
func setupSignals() (chan os.Signal, error) {
signals := make(chan os.Signal, 32)
// TODO: JTERRY75: Make this based on events.
return signals, nil
}
@ -67,7 +66,7 @@ func serveListener(path string) (net.Listener, string, error) {
}
func handleSignals(logger *logrus.Entry, signals chan os.Signal) error {
// TODO: JTERRY75: Make this based on events?
<-signals
return nil
}