From 0a231d217966e643ca56e09957be70bca3aec430 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 1 Apr 2026 18:49:13 +0100 Subject: [PATCH] libc: pthread: fix pthread_unmap_exit calling the wrong syscall --- lib/libc/pthread/sys/x86_64/pthread_unmap_exit.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/pthread/sys/x86_64/pthread_unmap_exit.S b/lib/libc/pthread/sys/x86_64/pthread_unmap_exit.S index b9d8232..112d2e0 100644 --- a/lib/libc/pthread/sys/x86_64/pthread_unmap_exit.S +++ b/lib/libc/pthread/sys/x86_64/pthread_unmap_exit.S @@ -23,7 +23,7 @@ __pthread_unmap_exit: syscall /* next, close the handle to the address space */ - mov $SYS_THREAD_EXIT, %rax + mov $SYS_KERN_HANDLE_CLOSE, %rax mov %rbx, %rdi syscall