[PATCH 4/9] tests: remote: monitor use execute_stop()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stop single thread instead of kill
all monitor apps.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@xxxxxxxxx>
---
 tests/remote/monitor.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/remote/monitor.py b/tests/remote/monitor.py
index 47b5e3bbd..96dbc6564 100644
--- a/tests/remote/monitor.py
+++ b/tests/remote/monitor.py
@@ -107,10 +107,7 @@ def stop(host):
     if host.thread is None:
         return
 
-    host.execute(["killall", "-s", "INT", "tshark"])
-    host.wait_execute_complete(host.thread, 5)
-    if host.thread.isAlive():
-       raise Exception("tshark still alive")
+    host.execute_stop(host.thread)
     host.thread = None
 
 # Add monitor to existing interface
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux