From f9905658b4b45c3b9505e9b8fc9db36bac5cde30 Mon Sep 17 00:00:00 2001 From: duke-cheng Date: Wed, 8 Apr 2015 17:11:54 +0800 Subject: [PATCH] Update tasks.py solve python defunct --- tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks.py b/tasks.py index a898b11..fef0d81 100644 --- a/tasks.py +++ b/tasks.py @@ -50,6 +50,7 @@ def nmap_dispath(targets, taskid=None): cmdline = 'python wyportmap.py %s %s' % (targets, taskid) nmap_proc = subprocess.Popen(cmdline,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) process_output = nmap_proc.stdout.readlines() + nmap_proc.wait() return process_output @app.task