1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

add helper function to set 'interruptThrown'

this fixes a linker failure on cygwin 64 due to some bad
interaction between tls and shared libraries.

see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697
This commit is contained in:
David McFarland 2017-04-21 11:28:10 -03:00
parent d35231ec60
commit 804ac52489
3 changed files with 8 additions and 3 deletions

View file

@ -946,7 +946,12 @@ void closeOnExec(int fd)
bool _isInterrupted = false;
thread_local bool interruptThrown = false;
static thread_local bool interruptThrown = false;
void setInterruptThrown()
{
interruptThrown = true;
}
void _interrupted()
{