1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 14:15:07 +00:00

LibC: Implement abort() as raise(SIGABRT).

This commit is contained in:
Andreas Kling 2019-05-26 02:21:10 +02:00
parent 0cac84d6bd
commit cde3274ffb

View file

@ -7,6 +7,7 @@
#include <assert.h>
#include <errno.h>
#include <ctype.h>
#include <signal.h>
#include <AK/Assertions.h>
#include <AK/Types.h>
#include <Kernel/Syscall.h>
@ -42,8 +43,7 @@ int atexit(void (*handler)())
void abort()
{
// FIXME: Implement proper abort().
CRASH();
raise(SIGABRT);
}
char* getenv(const char* name)