qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 3/6] qtest: add C version of test infrastructure


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 3/6] qtest: add C version of test infrastructure
Date: Tue, 17 Jan 2012 14:33:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 01/17/2012 12:33 PM, Stefan Hajnoczi wrote:
I was wondering about a qemu-side solution where a closed qtest socket
means we need to shut down, but am not sure if the chardev code lets
us do that.  (Really we want POLLHUP but we only seem to have
POLLIN/POLLOUT handlers.)

For poll, both POLLIN and POLLOUT are always reported together with POLLHUP. I think the same happens with select(). If you get a zero-read in the qtest chardev handler you can shut down.

Paolo



reply via email to

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