diff options
Diffstat (limited to 'internal/debug/signals_windows.go')
| -rw-r--r-- | internal/debug/signals_windows.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/debug/signals_windows.go b/internal/debug/signals_windows.go new file mode 100644 index 0000000..89030f3 --- /dev/null +++ b/internal/debug/signals_windows.go @@ -0,0 +1,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") +} |
