mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Minor patch
This commit is contained in:
@@ -20,6 +20,7 @@ import re
|
||||
import shutil
|
||||
import sys
|
||||
import thread
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
import warnings
|
||||
@@ -275,6 +276,10 @@ def main():
|
||||
if conf.get("dumper"):
|
||||
conf.dumper.flush()
|
||||
|
||||
if threading.activeCount() > 1:
|
||||
logger.debug("short delay for thread finalization")
|
||||
time.sleep(0.5)
|
||||
|
||||
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
|
||||
if conf.get("threads", 0) > 1 or conf.get("dnsServer"):
|
||||
os._exit(0)
|
||||
|
||||
Reference in New Issue
Block a user