commit | c9b4d88324c126336730beb5822c8e57942444bf | [log] [tgz] |
---|---|---|
author | Martin Storsjö <martin@martin.st> | Tue Oct 27 23:01:07 2020 +0200 |
committer | Martin Storsjö <martin@martin.st> | Wed Nov 11 12:34:47 2020 +0200 |
tree | 8bc3e4c2e8685a40f395eec8d67a81de52e4d1a8 | |
parent | b4da620ea9f159db0018d243d21fdf4fa8752f32 [diff] |
crt: Don't run TLS destructors for the main thread if exiting via _exit or ExitProcess For these cases, the TLS destructors are normally executed by the callback set up by _register_thread_local_exe_atexit_callback, but if this is bypassed (if exiting via _exit or ExitProcess), skip these callbacks. This differs from what MSVC does, but matches what the C++ standard says should happen. Signed-off-by: Martin Storsjö <martin@martin.st>