]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: print debuglog before sighandler crash
authorMichael Pratt <mpratt@google.com>
Wed, 7 Jun 2023 16:04:44 +0000 (12:04 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 20 Jul 2023 21:40:01 +0000 (21:40 +0000)
Change-Id: I48e8c314258a033fa0dc5e533e2c5bd06c529a7c
Reviewed-on: https://go-review.googlesource.com/c/go/+/501977
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/runtime/signal_unix.go

index ae842e9f79e0b49c25c0ef83589fc7340fa3eb05..87cb662e416aad712cd0fa61b7075f43791db2ed 100644 (file)
@@ -768,6 +768,7 @@ func sighandler(sig uint32, info *siginfo, ctxt unsafe.Pointer, gp *g) {
                        raiseproc(_SIGQUIT)
                        usleep(5 * 1000 * 1000)
                }
+               printDebugLog()
                crash()
        }