Systemd/klibc/klibc/abort.c
greg@kroah.com a41a0e28c2 [PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
Not hooked up to the build yet.
2005-04-26 21:05:23 -07:00

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 */
}