mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
8487ce45f8
We can call qemu_chr_fe_set_handlers() to add/remove fd been watched in 'context' which can be either default main context or other explicit context. But the original logic is not correct, we didn't remove the right fd because we call g_main_context_find_source_by_id(NULL, tag) which always try to find the Gsource from default context. Fix it by passing the right context to g_main_context_find_source_by_id(). Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> |
||
---|---|---|
.. | ||
char-console.c | ||
char-fd.c | ||
char-fd.h | ||
char-file.c | ||
char-io.c | ||
char-io.h | ||
char-mux.c | ||
char-mux.h | ||
char-null.c | ||
char-parallel.c | ||
char-parallel.h | ||
char-pipe.c | ||
char-pty.c | ||
char-ringbuf.c | ||
char-serial.c | ||
char-serial.h | ||
char-socket.c | ||
char-stdio.c | ||
char-udp.c | ||
char-win-stdio.c | ||
char-win-stdio.h | ||
char-win.c | ||
char-win.h | ||
char.c | ||
Makefile.objs |