[libvirt] [PATCH] virsh: Fix possible deadlock when virsh is about to exit

Eric Blake eblake at redhat.com
Wed Nov 30 21:59:56 UTC 2011


On 11/30/2011 12:42 PM, Jiri Denemark wrote:
> Not only was ctl->quit accessed without a mutex but unfortunately,
> virEventAddTimeout only interrupts the poll when event loop is running
> so the hack needs to add a timeout that will make next poll return
> immediately without blocking.
> ---
>  tools/virsh.c |   39 +++++++++++++++++++++++++++++++++------
>  1 files changed, 33 insertions(+), 6 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111130/dcbc1a39/attachment-0001.sig>


More information about the libvir-list mailing list