diff options
author | David McFarland <davidm@hb-studios.com> | 2017-04-21T14·28-0300 |
---|---|---|
committer | David McFarland <davidm@hb-studios.com> | 2017-04-21T14·28-0300 |
commit | 804ac524891ead6aa70e27c093686b71391ea232 (patch) | |
tree | b046be4ff1c5a88d4b404bea68bf01aaf28699a9 /src/libutil/util.cc | |
parent | d35231ec6017d72492a23b882b9275a60e1737a6 (diff) |
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
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 37dfccd0669a..88a2f752c023 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -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() { |