mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Fix terminaison of processes in python test script
This commit is contained in:
parent
d29ee1553c
commit
81e6100713
1 changed files with 8 additions and 4 deletions
|
@ -193,16 +193,20 @@ except AssertionError:
|
|||
result = -1
|
||||
|
||||
# terminate masscanned
|
||||
masscanned.kill()
|
||||
masscanned.send_signal(2)
|
||||
masscanned.terminate()
|
||||
masscanned.wait()
|
||||
# terminate capture
|
||||
if TCPDUMP:
|
||||
tcpdump.kill()
|
||||
tcpdump.send_signal(2)
|
||||
tcpdump.terminate()
|
||||
tcpdump.wait()
|
||||
if ZEEK_PASSIVERECON:
|
||||
zeek.kill()
|
||||
zeek.send_signal(2)
|
||||
zeek.terminate()
|
||||
zeek.wait()
|
||||
if P0F:
|
||||
p0f.kill()
|
||||
p0f.send_signal(2)
|
||||
p0f.terminate()
|
||||
p0f.wait()
|
||||
sys.exit(result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue