mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-07-05 15:29:45 +00:00
debug: revert signal handler, add wrap capture-check marker
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
18cf12f622
commit
afc5ec6931
@ -171,6 +171,7 @@ proc sdsCreate*(
|
||||
proc sdsWrapOutgoingMessage*(
|
||||
rm: ReliabilityManager, req: SdsWrapRequest
|
||||
): Future[Result[SdsWrapResponse, string]] {.ffi.} =
|
||||
sdsdbg("libsds.sdsWrap: body entered (capture-check) msgLen=" & $req.message.len)
|
||||
let wrapped = (
|
||||
await wrapOutgoingMessage(
|
||||
rm, req.message, req.messageId.SdsMessageID, req.channelId.SdsChannelID
|
||||
|
||||
@ -38,11 +38,8 @@ proc buildLibrary(
|
||||
" --threads:on --app:lib --opt:size --noMain --mm:refc --header --nimMainPrefix:libsds -d:noSignalHandler " &
|
||||
extra_params & " " & srcDir & name & ".nim"
|
||||
else:
|
||||
# TEMP DEBUG: enable Nim's signal handler (drop -d:noSignalHandler, pass the
|
||||
# nim-ffi guard via -d:ffiAllowSignalHandler) + stack/line traces so a SIGSEGV
|
||||
# prints a Nim file:line traceback instead of being swallowed by Go's handler.
|
||||
exec "nim c" & " --out:build/" & outLibNameAndExt &
|
||||
" --threads:on --app:lib --opt:size --noMain --mm:refc --header --nimMainPrefix:libsds -d:ffiAllowSignalHandler --stackTrace:on --lineTrace:on " &
|
||||
" --threads:on --app:lib --opt:size --noMain --mm:refc --header --nimMainPrefix:libsds -d:noSignalHandler " &
|
||||
extra_params & " " & srcDir & name & ".nim"
|
||||
|
||||
proc getMyCpu(): string =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user