qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v8 10/13] qemu.py: use poll() instead of 'return


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH v8 10/13] qemu.py: use poll() instead of 'returncode'
Date: Tue, 5 Sep 2017 11:07:59 +0800
User-agent: Mutt/1.8.3 (2017-05-23)

On Fri, 09/01 13:28, Amador Pahim wrote:
> The 'returncode' Popen attribute is not guaranteed to be updated. It
> actually depends on a call to either poll(), wait() or communicate().
> 
> On the other hand, poll() will: "Check if child process has terminated.
> Set and return returncode attribute."
> 
> Let's use the poll() to check whether the process is running and to get
> the updated process exit code, when the process is finished.
> 
> Signed-off-by: Amador Pahim <address@hidden>

Reviewed-by: Fam Zheng <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]