mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 14:37:50 +00:00
Guard against calling `libc::exit` multiple times on Linux. Mitigates (but does not fix) #126600 by ensuring only one thread which calls Rust `exit` actually calls `libc::exit`, and all other callers of Rust `exit` block.