Fix build for non-unix

This commit is contained in:
Deluan 2022-12-02 20:37:38 -05:00
parent 9ffd145e82
commit 4549b91ae0
1 changed files with 2 additions and 2 deletions

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():