From 04e0dcae14f6bde8f4feec4516b12d4f787a517f Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 15 Jun 2023 12:18:13 -0700 Subject: Rename AsyncSignalSafeWriteToStderr to AsyncSignalSafeWriteError. It no longer strictly writes to stderr, since Emscripten/WebAssembly now use _emscripten_err which might be replaced by something that is not the same as stderr by the host. PiperOrigin-RevId: 540655336 Change-Id: Icc2a430a0db53a1282ef5558e9f3648db67e972c --- absl/debugging/failure_signal_handler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'absl/debugging') diff --git a/absl/debugging/failure_signal_handler.cc b/absl/debugging/failure_signal_handler.cc index 0db2a896..fd6a4927 100644 --- a/absl/debugging/failure_signal_handler.cc +++ b/absl/debugging/failure_signal_handler.cc @@ -378,8 +378,7 @@ static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { // First write to stderr. WriteFailureInfo( signo, ucontext, my_cpu, +[](const char* data) { - absl::raw_log_internal::AsyncSignalSafeWriteToStderr(data, - strlen(data)); + absl::raw_log_internal::AsyncSignalSafeWriteError(data, strlen(data)); }); // Riskier code (because it is less likely to be async-signal-safe) -- cgit v1.2.3