From: Michael Goldish Subject: [KVM-AUTOTEST PATCH 0/5] Introducing kvm_subprocess Date: Mon, 15 Jun 2009 15:16:34 +0300 Message-ID: <1245068199-25679-1-git-send-email-mgoldish@redhat.com> To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:36633 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754922AbZFOMNb (ORCPT ); Mon, 15 Jun 2009 08:13:31 -0400 Sender: kvm-owner@vger.kernel.org List-ID: The following patches replace the run_bg() function and the kvm_spawn class with kvm_subprocess. The new module is intended to solve a problem with run_bg() (which loses track of the child process when the parent process exits) and allows for more flexibility in handling SSH/Telnet sessions (allows reusing sessions started in previous tests). kvm_subprocess defines a class 'kvm_spawn' and two functions: run_bg() and run_fg(). Its main job is to run a process in the background and allow the user to control it interactively and/or monitor its output on the fly. Its most important feature in the context of KVM tests is that it allows to control child processes left behind by processes that no longer exist. This means that if QEMU is started by the 'boot' test, its output will be logged in the following 'reboot' test as well. See kvm_spawn's docstring for more details.