]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #29491 - alexcrichton:avoid-stdio-tls, r=brson
authorbors <bors@rust-lang.org>
Fri, 6 Nov 2015 04:29:11 +0000 (04:29 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 Nov 2015 04:29:11 +0000 (04:29 +0000)
Currently if a print happens while a thread is being torn down it may cause a
panic if the LOCAL_STDOUT TLS slot has been destroyed by that point. This adds a
guard to check and prints to the process stdout if that's the case (as we do for
if the slot is already borrowed).

Closes #29488


Trivial merge