summaryrefslogtreecommitdiff
path: root/absl/debugging/failure_signal_handler.cc
diff options
context:
space:
mode:
authorGravatar Yasushi Saito <yasushi.saito@gmail.com>2021-04-13 19:59:46 -0700
committerGravatar GitHub <noreply@github.com>2021-04-13 22:59:46 -0400
commitdb1b7310d7021700b5a7bcea1989b2a625529f40 (patch)
treede9ffc376648373da3165d2360e7245d6de606ab /absl/debugging/failure_signal_handler.cc
parent25bc82d7ef481bd06723aae805d286eba81900ca (diff)
Call FailureSignalHandlerOptions.writenfn with nullptr at the end (#938)
* Call FailureSignalHandlerOptions.writenfn with nullptr at the end This behavior has already been alluded to in the document, but it hasn't been implemented. This PR calls changes the failure signal handler to call writerfn(nullptr) at the end of the message block. It also clarifies the documentation. https://github.com/abseil/abseil-cpp/issues/933 * Update failure_signal_handler.h Co-authored-by: Derek Mauro <761129+derekmauro@users.noreply.github.com>
Diffstat (limited to 'absl/debugging/failure_signal_handler.cc')
-rw-r--r--absl/debugging/failure_signal_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/debugging/failure_signal_handler.cc b/absl/debugging/failure_signal_handler.cc
index a9ed6ef9..e458a795 100644
--- a/absl/debugging/failure_signal_handler.cc
+++ b/absl/debugging/failure_signal_handler.cc
@@ -366,6 +366,7 @@ static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) {
// goes after this point.
if (fsh_options.writerfn != nullptr) {
WriteFailureInfo(signo, ucontext, my_cpu, fsh_options.writerfn);
+ fsh_options.writerfn(nullptr);
}
if (fsh_options.call_previous_handler) {