mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
08a5519924
std: don't call `current_os_id` from signal handler `current_os_id` is not always async-signal-safe depending on the platform, hence it may not be called from the SIGSEGV handler. Instead, store the thread ID along with the thread name during setup. With rust-lang/rust#144465 merged, this information is available even before the thread main function.