From patchwork Mon Oct 18 13:13:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 261811 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9IDDkD0020077 for ; Mon, 18 Oct 2010 13:13:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754839Ab0JRNNo (ORCPT ); Mon, 18 Oct 2010 09:13:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8953 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156Ab0JRNNn (ORCPT ); Mon, 18 Oct 2010 09:13:43 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9IDDhv0011519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Oct 2010 09:13:43 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o9IDDg5n016374; Mon, 18 Oct 2010 09:13:42 -0400 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o9IDDebq007914; Mon, 18 Oct 2010 09:13:41 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH] KVM test: kvm_subprocess.py: reset _thread_kill_requested in kill_tail_threads() Date: Mon, 18 Oct 2010 15:13:37 +0200 Message-Id: <1287407620-30026-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 18 Oct 2010 13:13:47 +0000 (UTC) diff --git a/client/tests/kvm/kvm_subprocess.py b/client/tests/kvm/kvm_subprocess.py index 580f71d..8321bb3 100755 --- a/client/tests/kvm/kvm_subprocess.py +++ b/client/tests/kvm/kvm_subprocess.py @@ -561,6 +561,7 @@ def kill_tail_threads(): for t in threading.enumerate(): if hasattr(t, "name") and t.name.startswith("tail_thread"): t.join(10) + _thread_kill_requested = False class kvm_tail(kvm_spawn): @@ -706,7 +707,6 @@ 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