qemu-char: use qemu_set_fd_handler/2 consistently
commit069c159e3935daea714f7b77bbe5f20bd99c4445
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 16 Sep 2011 21:19:55 +0000 (16 18:19 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 23 Sep 2011 18:42:33 +0000 (23 13:42 -0500)
tree45685ccea9f984c3a9cec0ad96f9cd97c989702b
parente8beeae4c0f42de9f72dcd7ba156dbb99ab4cc4c
qemu-char: use qemu_set_fd_handler/2 consistently

Now that qemu_set_fd_handler and qemu_set_fd_handler2 have different
implementations, one using qemu iohandlers and the other glib, it is not
safe to mix the two when inserting/deleting handlers.

Fixes kvm-autotest.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c