mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08:00
b19456dd0e
We use fd_in_tag to find a GSource, fd_in_tag is return value of
g_source_attach(GSource *source, GMainContext *context), the return
value is unique only in the same context, so we may get the same
values with different 'context' parameters.
It is no problem to find the right fd_in_tag by using
g_main_context_find_source_by_id(GMainContext *context, guint source_id)
while there is only one default main context.
But colo-compare tries to create/use its own context, and if we pass wrong
'context' parameter with right fd_in_tag, we will find a wrong GSource to handle.
We tried to fix the related codes in commit
|
||
---|---|---|
.. | ||
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 |