unix: acquire-load NEED_ALTSTACK

Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
This commit is contained in:
Jubilee 2024-07-18 15:24:40 -07:00 committed by GitHub
parent c1740eee1e
commit 529fcbcd6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,7 @@ mod imp {
/// Mutates the alternate signal stack
#[forbid(unsafe_op_in_unsafe_fn)]
pub unsafe fn make_handler(main_thread: bool) -> Handler {
if !NEED_ALTSTACK.load(Ordering::Relaxed) {
if !NEED_ALTSTACK.load(Ordering::Acquire) {
return Handler::null();
}