[Spice-devel] [PATCH spice-server] basic-event-loop: Document why code does not use default GLib context
Christophe Fergeau
cfergeau at redhat.com
Tue Jan 16 12:38:20 UTC 2018
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Tue, Jan 09, 2018 at 07:43:24PM +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/tests/basic-event-loop.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/server/tests/basic-event-loop.c b/server/tests/basic-event-loop.c
> index 6fd8a2934..b10ac9468 100644
> --- a/server/tests/basic-event-loop.c
> +++ b/server/tests/basic-event-loop.c
> @@ -130,6 +130,9 @@ SpiceCoreInterface *basic_event_loop_init(void)
> {
> ignore_sigpipe();
> spice_assert(main_context == NULL);
> + /* Qemu can use a context which is not the default one so to make
> + * sure we can handle this condition here we emulate it so don't
> + * use g_main_context_default */
> main_context = g_main_context_new();
> base_core_interface = event_loop_core;
> base_core_interface.main_context = main_context;
> --
> 2.14.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180116/138b8eac/attachment.sig>
More information about the Spice-devel
mailing list