Handle windows signals
Since windows does not require a signal handler, we just block on the
channel forever so that it does not exit.
@@ -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
}
