Fix build for non-unix

This commit is contained in:
Deluan 2022-12-02 20:37:38 -05:00 committed by Joe Stump
parent 1c60583539
commit 69af07054e
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -1,4 +1,4 @@
//go:build !unix
//go:build windows || plan9
package cmd
@ -17,7 +17,7 @@ func startSignaler(ctx context.Context) func() error {
var sigChan = make(chan os.Signal, 1)
signal.Notify(sigChan, os.Interrupt)
select {
case <-sigChan:
case sig := <-sigChan:
log.Info(ctx, "Received termination signal", "signal", sig)
return interrupted
case <-ctx.Done():