a41a0e28c2
Not hooked up to the build yet.
20 lines
280 B
C
20 lines
280 B
C
/*
|
|
* abort.c
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <signal.h>
|
|
|
|
void abort(void)
|
|
{
|
|
sigset_t set;
|
|
|
|
sigemptyset(&set);
|
|
sigaddset(&set, SIGABRT);
|
|
sigprocmask(SIG_UNBLOCK, &set, NULL);
|
|
raise(SIGABRT);
|
|
_exit(255); /* raise() should have killed us */
|
|
}
|
|
|