On Mon, 2010-03-29 at 17:56 +0800, Yolkfull Chow wrote:
> Sometimes it tried to kill an already terminated process which can cause
> a traceback. This patch fixes the problem.

Thanks, applied!

> Signed-off-by: Yolkfull Chow <[email protected]>
> ---
>  client/profilers/kvm_stat/kvm_stat.py |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/client/profilers/kvm_stat/kvm_stat.py 
> b/client/profilers/kvm_stat/kvm_stat.py
> index 7568a03..59d6ff6 100644
> --- a/client/profilers/kvm_stat/kvm_stat.py
> +++ b/client/profilers/kvm_stat/kvm_stat.py
> @@ -51,7 +51,10 @@ class kvm_stat(profiler.profiler):
>  
>          @param test: Autotest test on which this profiler will operate on.
>          """
> -        os.kill(self.pid, 15)
> +        try:
> +            os.kill(self.pid, 15)
> +        except OSError:
> +            pass
>  
> 
>      def report(self, test):


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to