Skip to content

Commit ac7795c

Browse files
committed
windows incompatability + api docs change
1 parent 0ec5e51 commit ac7795c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/api/paths/admin/_debug-stack_trace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ get:
2222
type: string
2323
tags:
2424
- Profiling
25+
operationId: get__debug-stacktrace

rest/server_context.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"os"
2323
"os/signal"
2424
"path/filepath"
25+
"runtime"
2526
"slices"
2627
"sort"
2728
"strconv"
@@ -210,9 +211,11 @@ func NewServerContext(ctx context.Context, config *StartupConfig, persistentConf
210211

211212
sc.startStatsLogger(ctx)
212213

213-
signalCtx, cancelFunc := context.WithCancel(ctx)
214-
sc.signalContextFunc = cancelFunc
215-
sc.registerSignalHandlerForStackTrace(signalCtx)
214+
if runtime.GOOS != "windows" {
215+
signalCtx, cancelFunc := context.WithCancel(ctx)
216+
sc.signalContextFunc = cancelFunc
217+
sc.registerSignalHandlerForStackTrace(signalCtx)
218+
}
216219

217220
return sc
218221
}

0 commit comments

Comments
 (0)