mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibC: Implement abort() as raise(SIGABRT).
This commit is contained in:
parent
0cac84d6bd
commit
cde3274ffb
Notes:
sideshowbarker
2024-07-19 13:56:32 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cde3274ffb9
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…
Reference in a new issue