Fix signaler on Windows

This commit is contained in:
Deluan
2024-04-28 18:32:28 -04:00
parent 3d9fff36f7
commit 7ab7b5df5e
3 changed files with 54 additions and 25 deletions
+14
View File
@@ -0,0 +1,14 @@
//go:build windows || plan9
package cmd
import (
"context"
)
// Windows and Plan9 don't support SIGUSR1, so we don't need to start a signaler
func startSignaler(ctx context.Context) func() error {
return func() error {
return nil
}
}