Skip to content

Commit 9d72b45

Browse files
committed
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 <[email protected]>
1 parent f15a117 commit 9d72b45

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

runtime/v2/shim/shim_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import (
3737
// setupSignals creates a new signal handler for all signals
3838
func setupSignals() (chan os.Signal, error) {
3939
signals := make(chan os.Signal, 32)
40-
// TODO: JTERRY75: Make this based on events.
4140
return signals, nil
4241
}
4342

@@ -67,7 +66,7 @@ func serveListener(path string) (net.Listener, string, error) {
6766
}
6867

6968
func handleSignals(logger *logrus.Entry, signals chan os.Signal) error {
70-
// TODO: JTERRY75: Make this based on events?
69+
<-signals
7170
return nil
7271
}
7372

0 commit comments

Comments
 (0)