From ea0ec6a8189d615629110d14a4675d852559569f Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Sat, 17 Jan 2026 15:07:16 -0500 Subject: [PATCH] Fix fork on aarch64 --- arch/aarch64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/aarch64.c b/arch/aarch64.c index 67af633..9ff9deb 100644 --- a/arch/aarch64.c +++ b/arch/aarch64.c @@ -57,9 +57,10 @@ intptr_t read(int32_t fd, const void* buf, intptr_t size){ #define CLONE_CHILD_SETTID 0x1000000 #define CLONE_CHILD_CLEARTID 0x200000 +#define SIGCHLD 0x11 uint32_t fork(){ long int rtn; - long int flags = CLONE_CHILD_CLEARTID | CLONE_CHILD_SETTID; + long int flags = CLONE_CHILD_CLEARTID | CLONE_CHILD_SETTID | SIGCHLD; asm volatile ( // Assembly Instructions "mov x8, #220\n" // Syscall number for 'clone' is 220 in AArch64