summaryrefslogtreecommitdiff
path: root/internal/debug/signals_windows.go
blob: 89030f32cccd2556ac81110f5a45b2398c451ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// +build windows

package debug

import (
	"fmt"
	"os"
)

// SetDebugDir sets the directory where debug output files will be written.
// On Windows, signal handlers are not supported, so this is a no-op.
func SetDebugDir(dir string) {
	// No-op on Windows
}

// InitSignalHandlers sets up signal handlers for runtime diagnostics.
// On Windows, SIGUSR1 and SIGUSR2 are not available, so this prints a warning.
func InitSignalHandlers() {
	fmt.Fprintln(os.Stderr, "debug: signal handlers not supported on Windows")
	fmt.Fprintln(os.Stderr, "debug: consider using GODEBUG environment variable or pprof HTTP endpoint")
}