Merge pull request #8 from darlinghq/fix_simple_abort

Fix "__simple_abort" Method
This commit is contained in:
CuriousTommy 2024-01-21 14:24:11 -08:00 committed by GitHub
commit 814a90cae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@
#include <linux-syscalls/linux.h>
#include "mach/lkm.h"
#include "signal/kill.h"
#include "unistd/getpid.h"
#include <sys/signal.h>
#include <darlingserver/rpc.h>
@ -574,6 +575,6 @@ have_nl:
__attribute__ ((visibility ("default")))
void __simple_abort(void) {
sys_kill(0, SIGABRT, 1);
sys_kill(sys_getpid(), SIGABRT, 1);
__builtin_unreachable();
};