Report errors to the log, not just stderr.
In particular this affects assert(3) and __cxa_pure_virtual, both of
which have managed to confuse people this week by apparently aborting
without reason. (Because stderr goes nowhere, normally.)
Bug: 6852995
Bug: 6840813
Change-Id: I7f5d17d5ddda439e217b7932096702dc013b9142
diff --git a/libc/unistd/abort.c b/libc/unistd/abort.c
index 58d620d..4dffbae 100644
--- a/libc/unistd/abort.c
+++ b/libc/unistd/abort.c
@@ -34,11 +34,6 @@
#include "thread_private.h"
#include "atexit.h"
-/* temporary, for bug hunting */
-#include "logd.h"
-#define debug_log(format, ...) \
- __libc_android_log_print(ANDROID_LOG_DEBUG, "libc-abort", (format), ##__VA_ARGS__ )
-
#ifdef __arm__
__LIBC_HIDDEN__ void
__libc_android_abort(void)
@@ -51,7 +46,7 @@
static int cleanup_called = 0;
sigset_t mask;
-
+
sigfillset(&mask);
/*
* don't block SIGABRT to give any handler a chance; we ignore