From db1b7310d7021700b5a7bcea1989b2a625529f40 Mon Sep 17 00:00:00 2001 From: Yasushi Saito Date: Tue, 13 Apr 2021 19:59:46 -0700 Subject: 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> --- absl/debugging/failure_signal_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'absl/debugging/failure_signal_handler.h') diff --git a/absl/debugging/failure_signal_handler.h b/absl/debugging/failure_signal_handler.h index 0c0f585..500115c 100644 --- a/absl/debugging/failure_signal_handler.h +++ b/absl/debugging/failure_signal_handler.h @@ -90,7 +90,7 @@ struct FailureSignalHandlerOptions { // If non-null, indicates a pointer to a callback function that will be called // upon failure, with a string argument containing failure data. This function // may be used as a hook to write failure data to a secondary location, such - // as a log file. This function may also be called with null data, as a hint + // as a log file. This function will also be called with null data, as a hint // to flush any buffered data before the program may be terminated. Consider // flushing any buffered data in all calls to this function. // -- cgit v1.2.3