Skip to content

Commit 4fc3ff0

Browse files
internal/common: disable debug signal handler on Windows
Signed-off-by: AkshatDudeja77 <akshat.dudeja77@gmail.com>
1 parent 66e0153 commit 4fc3ff0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/common/util.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const dumpPath = "/tmp/goroutine-stacks.dump"
3434
// output didn't work.
3535
func StartDebugSignalHandlers() {
3636
go func() {
37+
if runtime.GOOS == "windows" {
38+
klog.Infof("Debug signal handlers are disabled on Windows")
39+
return
40+
}
3741
c := make(chan os.Signal, 1)
3842
signal.Notify(c, syscall.SIGUSR2)
3943
for range c {

0 commit comments

Comments
 (0)