about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-04-21T15·39+0200
committerGitHub <noreply@github.com>2017-04-21T15·39+0200
commit169edf94072c92f9a6148838c50c92350c5bc183 (patch)
treeb046be4ff1c5a88d4b404bea68bf01aaf28699a9 /src/libutil/util.cc
parent749696e71c9d637a36ab09a1368dff01b2b1bda8 (diff)
parent804ac524891ead6aa70e27c093686b71391ea232 (diff)
Merge pull request #1352 from corngood/cygwin-fixes
Cygwin fixes
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc7
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()
 {