vnc: qemu can die if the client is disconnected while updating screen
commit602c075070f113c69c2100776f7a67cee55dd61e
authorCorentin Chary <corentincj@iksaif.net>
Fri, 4 Feb 2011 08:05:53 +0000 (4 09:05 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Feb 2011 12:53:52 +0000 (4 06:53 -0600)
tree1dd226007c6df3f38fef3212036cfd9e8563c373
parentcb5281b1998c12b8d93d0c6a29aeae13934ceb1a
vnc: qemu can die if the client is disconnected while updating screen

agraf reported that qemu_mutex_destroy(vs->output_mutex) while failing
in vnc_disconnect_finish().

It's because vnc_worker_thread_loop() tries to unlock the mutex while
not locked. The unlocking call doesn't fail (pthread bug ?), but
the destroy call does.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 73eb4c04e9e8ea7f6eb83694cb0c43e38d882a7c)
ui/vnc-jobs-async.c