File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 133133from lib .core .settings import VERSION_STRING
134134from lib .core .settings import WEBSCARAB_SPLITTER
135135from lib .core .threads import getCurrentThreadData
136+ from lib .core .threads import setDaemon
136137from lib .core .update import update
137138from lib .parse .configfile import configFileParser
138139from lib .parse .payloads import loadBoundaries
@@ -1063,6 +1064,7 @@ def connect(self, address):
10631064 socket .socket .connect = connect
10641065
10651066 thread = threading .Thread (target = _ )
1067+ setDaemon (thread )
10661068 thread .start ()
10671069
10681070def _setHTTPHandlers ():
Original file line number Diff line number Diff line change 1919from lib .core .revision import getRevisionNumber
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.0.5.27 "
22+ VERSION = "1.0.5.28 "
2323REVISION = getRevisionNumber ()
2424STABLE = VERSION .count ('.' ) <= 2
2525VERSION_STRING = "sqlmap/%s#%s" % (VERSION , "stable" if STABLE else "dev" )
Original file line number Diff line number Diff line change 2020import shutil
2121import sys
2222import thread
23+ import threading
2324import time
2425import traceback
2526import warnings
@@ -275,6 +276,10 @@ def main():
275276 if conf .get ("dumper" ):
276277 conf .dumper .flush ()
277278
279+ if threading .activeCount () > 1 :
280+ logger .debug ("short delay for thread finalization" )
281+ time .sleep (0.5 )
282+
278283 # Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
279284 if conf .get ("threads" , 0 ) > 1 or conf .get ("dnsServer" ):
280285 os ._exit (0 )
You can’t perform that action at this time.
0 commit comments