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
|
result = -1
|
||||||
|
|
||||||
# terminate masscanned
|
# terminate masscanned
|
||||||
masscanned.kill()
|
masscanned.send_signal(2)
|
||||||
|
masscanned.terminate()
|
||||||
masscanned.wait()
|
masscanned.wait()
|
||||||
# terminate capture
|
# terminate capture
|
||||||
if TCPDUMP:
|
if TCPDUMP:
|
||||||
tcpdump.kill()
|
tcpdump.send_signal(2)
|
||||||
|
tcpdump.terminate()
|
||||||
tcpdump.wait()
|
tcpdump.wait()
|
||||||
if ZEEK_PASSIVERECON:
|
if ZEEK_PASSIVERECON:
|
||||||
zeek.kill()
|
zeek.send_signal(2)
|
||||||
|
zeek.terminate()
|
||||||
zeek.wait()
|
zeek.wait()
|
||||||
if P0F:
|
if P0F:
|
||||||
p0f.kill()
|
p0f.send_signal(2)
|
||||||
|
p0f.terminate()
|
||||||
p0f.wait()
|
p0f.wait()
|
||||||
sys.exit(result)
|
sys.exit(result)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue