kvm_subprocess: Reset _thread_kill_requested after tail_thread quit

From: Amos Kong <[email protected]>

If iterations of test is larger than 1, tcpdump process would be killed at the
end of iterations.1, then global 'thread_kill_requested' becomes 'True', in
iterations.2 tcpdump process would also be immediately killed after launch.
So we need reset '_thread_kill_requested' to 'False' after tail_thread quit.

Signed-off-by: Amos Kong <[email protected]>
---
 client/tests/kvm/kvm_subprocess.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_subprocess.py 
b/client/tests/kvm/kvm_subprocess.py
index f815069..580f71d 100755
--- a/client/tests/kvm/kvm_subprocess.py
+++ b/client/tests/kvm/kvm_subprocess.py
@@ -706,6 +706,7 @@ class kvm_tail(kvm_spawn):
             while True:
                 global _thread_kill_requested
                 if _thread_kill_requested:
+                    _thread_kill_requested = False
                     return
                 try:
                     # See if there's any data to read from the pipe
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to