Wait for the subprocesses before terminating.

This commit is contained in:
Petter Reinholdtsen 2017-09-27 18:35:31 +02:00
parent 545d7aebec
commit 5e9eb68c4c

4
scan-and-livemon Normal file → Executable file
View file

@ -93,7 +93,9 @@ def main(options = None):
"-f", str(freq)])
procs.append(proc)
serverport = serverport + 1
#proc.terminate()
# Keep the processes in our process group, to make sure they all die when scan-and-livemon is killed
for proc in procs:
proc.wait()
if __name__ == '__main__':
main()