Merge pull request #1328 from jerrypy/master

fixed open pipe and zoombie problems
This commit is contained in:
Miroslav Stampar 2015-08-12 21:26:02 +02:00
commit 236b774f9a

View File

@ -155,11 +155,12 @@ class Task(object):
def engine_start(self):
self.process = Popen(["python", "sqlmap.py", "--pickled-options", base64pickle(self.options)],
shell=False, stdin=PIPE, close_fds=not IS_WIN)
shell=False, close_fds=not IS_WIN)
def engine_stop(self):
if self.process:
return self.process.terminate()
self.process.terminate()
return self.process.wait()
else:
return None
@ -168,7 +169,8 @@ class Task(object):
def engine_kill(self):
if self.process:
return self.process.kill()
self.process.kill()
return self.process.wait()
else:
return None