end up altering the thread on which crashes are done because of its use of
Darwin's broken raise() implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114558
91177308-0d34-0410-b5e6-
96231b3b80d8
#ifdef __APPLE__
+int raise(int sig) {
+ return pthread_kill(pthread_self(), SIGABRT);
+}
+
void __assert_rtn(const char *func,
const char *file,
int line,
#include <pthread.h>
void abort() {
- pthread_kill(pthread_self(), SIGABRT);
+ raise(SIGABRT);
usleep(1000);
__builtin_trap();
}