little stabilization of multi threading

This commit is contained in:
Miroslav Stampar
2011-06-17 12:50:28 +00:00
parent 2171c64213
commit 9498a3f259
3 changed files with 21 additions and 6 deletions

View File

@@ -129,8 +129,8 @@ def main():
kb.threadContinue = False
kb.threadException = True
# just in case handling of leftover threads
raise SystemExit
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
os._exit(0)
if __name__ == "__main__":
main()