]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Remove watches before calling REMOTE_PROC_CLOSE
authorJiri Denemark <jdenemar@redhat.com>
Mon, 10 May 2010 13:13:17 +0000 (15:13 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 12 May 2010 14:07:08 +0000 (16:07 +0200)
commit6ef9d9da5e4fcefb7aa84006202b15600480023b
tree4e03b749c67bf4da943996b8c1165537df7c65b2
parentc2c4abb43bb8c1150387852a532af50a0d93a70e
Remove watches before calling REMOTE_PROC_CLOSE

First calling REMOTE_PROC_CLOSE and then removing watches might lead to
a hang as HANGUP event can be triggered before the watches are actually
removed but after virConnectPtr is already freed. As a result of that
remoteDomainEventFired() would try to lock uninitialized mutex, which
would hang for ever.
src/remote/remote_driver.c