Change-Id: I970a25ae0dd52f0d928fda376296e7b39e3e17eb
#ifdef _LIBC
struct syslog_data sdata = SYSLOG_DATA_INIT;
struct sigaction sa;
-#endif
sigset_t mask;
/* Immediately block all signal handlers from running code */
(void)sigdelset(&mask, SIGABRT);
(void)sigprocmask(SIG_BLOCK, &mask, NULL);
-#ifdef _LIBC
/* This may fail on a chroot jail... */
syslog_ss(LOG_CRIT, &sdata, "%s", msg);
#else
#include <stdlib.h>
#include <unistd.h>
+#if defined(_LIBC)
extern void (*__cleanup)(void);
static int aborting = 0;
(void)raise(SIGABRT);
_exit(1);
}
+#else
+void
+abort(void)
+{
+ exit(1);
+}
+#endif /* defined(_LIBC) */