[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 02/17] iotests: iotests.py: prevent deadlock in
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH 02/17] iotests: iotests.py: prevent deadlock in subprocess |
Date: |
Wed, 30 May 2018 14:07:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 2018-04-26 18:19, Roman Kagan wrote:
> A subprocess whose std{out,err} is subprocess.PIPE may block writing its
> output, so .wait() should not be called on it until the pipes are read
> completely on the caller's side.
>
> Subprocess.communicate takes care of this.
>
> Signed-off-by: Roman Kagan <address@hidden>
> ---
> tests/qemu-iotests/iotests.py | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] [PATCH 02/17] iotests: iotests.py: prevent deadlock in subprocess,
Max Reitz <=