Merge pull request #33 from petterreinholdtsen/scan-wait

Wait for the subprocesses before terminating.
This commit is contained in:
Oros42 2017-09-27 20:10:09 +02:00 committed by GitHub
commit 1386771fcf

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()