fix for a bug noticed in a multi target run (log files weren't saved properly - removed buffering as it didn't produce any noticeable results)

This commit is contained in:
Miroslav Stampar
2012-06-05 22:40:55 +00:00
parent f94ebe3107
commit 058a9c59a2
4 changed files with 5 additions and 24 deletions

View File

@@ -34,7 +34,6 @@ from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
from lib.core.data import paths
from lib.core.dump import dumper
from lib.core.common import unhandledExceptionMessage
from lib.core.exception import exceptionsTuple
from lib.core.exception import sqlmapSilentQuitException
@@ -123,8 +122,6 @@ def main():
except KeyboardInterrupt:
pass
dumper.flush()
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
if conf.get("threads", 0) > 1 or conf.get("dnsServer", None):
os._exit(0)