[libc] Linux threads - Set CLEAR_TID addr to 0 when exiting a detached thread.
A detached thread cleans itself up at completion. So, the CLEAR_TID memory is also gone by the time the kernel tries to signal potential waiters. By nulling the CLEAR_TID address, we prevent the kernel from signalling at a non-existent futex location.
Loading
Please sign in to comment