about summary refs log tree commit diff
path: root/src/exit/abort.c
blob: ecc0f735aaee71ca9324f537db1a6db1fb1e5897 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdlib.h>
#include <signal.h>
#include "syscall.h"
#include "pthread_impl.h"
#include "atomic.h"

_Noreturn void abort(void)
{
	raise(SIGABRT);
	__block_all_sigs(0);
	a_crash();
	raise(SIGKILL);
	_Exit(127);
}