mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-26 22:10:24 +00:00
Merge pull request #8 from darlinghq/fix_simple_abort
Fix "__simple_abort" Method
This commit is contained in:
commit
814a90cae0
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user