diff --git a/darling/src/libsystem_kernel/emulation/linux/simple.c b/darling/src/libsystem_kernel/emulation/linux/simple.c index 989c941..b180ac0 100644 --- a/darling/src/libsystem_kernel/emulation/linux/simple.c +++ b/darling/src/libsystem_kernel/emulation/linux/simple.c @@ -5,6 +5,7 @@ #include #include "mach/lkm.h" #include "signal/kill.h" +#include "unistd/getpid.h" #include #include @@ -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(); };