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