This commit is contained in:
Miroslav Stampar 2016-02-15 00:00:37 +01:00
parent 4ee0495352
commit 08d733cf02

View File

@ -12,6 +12,7 @@ import os
import re import re
import shutil import shutil
import sys import sys
import thread
import time import time
import traceback import traceback
import warnings import warnings
@ -109,7 +110,15 @@ def main():
elif conf.liveTest: elif conf.liveTest:
liveTest() liveTest()
else: else:
start() try:
start()
except thread.error as ex:
if "can't start new thread" in getSafeExString(ex):
errMsg = "unable to start new threads. Please check OS (u)limits"
logger.critical(errMsg)
raise SystemExit
else:
raise
except SqlmapUserQuitException: except SqlmapUserQuitException:
errMsg = "user quit" errMsg = "user quit"
@ -130,7 +139,6 @@ def main():
logger.critical(errMsg) logger.critical(errMsg)
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
raise SystemExit raise SystemExit
except KeyboardInterrupt: except KeyboardInterrupt: