aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-26 21:42:00 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-26 21:42:00 +0200
commitc2c224ace7eace701006292b091afc1981f9c397 (patch)
treebfdd44be088be97111260a6f1319acb9d677da9f /scripts
parent115ee67b24afcea81fc9c583400b50b10718681a (diff)
downloadlinux-conf-perf-c2c224ace7eace701006292b091afc1981f9c397.tar.gz
linux-conf-perf-c2c224ace7eace701006292b091afc1981f9c397.tar.bz2
linux-conf-perf-c2c224ace7eace701006292b091afc1981f9c397.zip
Fix terminate variable for single thread mode
Latest changes for multithreading broke single thread mode.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/loop.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/loop.py b/scripts/loop.py
index 29be5aa..f9df231 100755
--- a/scripts/loop.py
+++ b/scripts/loop.py
@@ -114,12 +114,11 @@ def sigterm_handler(_signo, _stack_frame):
__preparethreadEvent__.set()
# Main loop and single thread #
+__terminate__ = False
def loop():
utils.dirtycheck()
initialize.all()
if conf.multithread:
- global __terminate__
- __terminate__ = False
__preparethread__.start()
__measurethread__.start()
else: