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:
parent
0cac84d6bd
commit
cde3274ffb
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue