Merge pull request #33 from petterreinholdtsen/scan-wait
Wait for the subprocesses before terminating.
This commit is contained in:
commit
1386771fcf
1 changed files with 3 additions and 1 deletions
4
scan-and-livemon
Normal file → Executable file
4
scan-and-livemon
Normal file → Executable 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()
|
||||
|
|
Loading…
Reference in a new issue