[#absl-FailureSignalHandlerOptions-writerfn]
= xref:absl.adoc[absl]::xref:absl/FailureSignalHandlerOptions.adoc[FailureSignalHandlerOptions]::writerfn
:relfileprefix: ../../
:mrdocs:

If non&hyphen;null, indicates a pointer to a callback function that will be called upon failure, with a string argument containing failure data&period; This function may be used as a hook to write failure data to a secondary location, such as a log file&period; This function will also be called with null data, as a hint to flush any buffered data before the program may be terminated&period; Consider flushing any buffered data in all calls to this function&period;

== Synopsis

Declared in `&lt;absl&sol;debugging&sol;failure&lowbar;signal&lowbar;handler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void(* writerfn)(char const*) = nullptr;
----

== Description

Since this function runs within a signal handler, it should be async&hyphen;signal&hyphen;safe if possible&period; See http&colon;&sol;&sol;man7&period;org&sol;linux&sol;man&hyphen;pages&sol;man7&sol;signal&hyphen;safety&period;7&period;html


[.small]#Created with https://www.mrdocs.com[MrDocs]#
