mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Merge pull request #31 from ivre/fix-kill
Fix terminaison of processes in python test script
This commit is contained in:
commit
b068a2e617
1 changed files with 5 additions and 4 deletions
|
@ -20,6 +20,7 @@ import atexit
|
|||
import functools
|
||||
import logging
|
||||
import os
|
||||
from signal import SIGINT
|
||||
import subprocess
|
||||
import sys
|
||||
from time import sleep
|
||||
|
@ -193,16 +194,16 @@ except AssertionError:
|
|||
result = -1
|
||||
|
||||
# terminate masscanned
|
||||
masscanned.kill()
|
||||
masscanned.send_signal(SIGINT)
|
||||
masscanned.wait()
|
||||
# terminate capture
|
||||
if TCPDUMP:
|
||||
tcpdump.kill()
|
||||
tcpdump.send_signal(SIGINT)
|
||||
tcpdump.wait()
|
||||
if ZEEK_PASSIVERECON:
|
||||
zeek.kill()
|
||||
zeek.send_signal(SIGINT)
|
||||
zeek.wait()
|
||||
if P0F:
|
||||
p0f.kill()
|
||||
p0f.send_signal(SIGINT)
|
||||
p0f.wait()
|
||||
sys.exit(result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue