]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Fix possible deadlock when virsh is about to exit
authorJiri Denemark <jdenemar@redhat.com>
Wed, 30 Nov 2011 19:42:20 +0000 (20:42 +0100)
committerDaniel Veillard <veillard@redhat.com>
Thu, 1 Dec 2011 02:34:43 +0000 (10:34 +0800)
commitcb1e7b61c8f6d4cc0809b6c52830f95c0404222a
treebb71d0c9704e6c03117e89ef7a0ad0c312a468be
parent4c8327994c4eeafb4ab675845031556fdfb7489a
virsh: Fix possible deadlock when virsh is about to exit

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