Re: [Spice-devel] [PATCH v4 7/8] vdagent: Use GMainLoop

2017-10-17 Thread Christophe Fergeau
On Mon, Oct 16, 2017 at 10:53:43AM -0400, Frediano Ziglio wrote: > > - > > -n = select(nfds, &readfds, &writefds, NULL, NULL); > > -if (n == -1) { > > -if (errno == EINTR) > > -continue; > > -syslog(LOG_ERR, "Fatal error select: %s", strerror(

Re: [Spice-devel] [PATCH v4 7/8] vdagent: Use GMainLoop

2017-10-16 Thread Jakub Janků
On Mon, Oct 16, 2017 at 4:53 PM, Frediano Ziglio wrote: >> >> From: Jakub Janků >> >> Replace existing main while-loop with GMainLoop. >> >> Use GIOChannel with g_io_add_watch() to manage IO >> from x11 connections in the main loop. >> >> udscs_connect() now internally creates GSources >> by call

Re: [Spice-devel] [PATCH v4 7/8] vdagent: Use GMainLoop

2017-10-16 Thread Frediano Ziglio
> > From: Jakub Janků > > Replace existing main while-loop with GMainLoop. > > Use GIOChannel with g_io_add_watch() to manage IO > from x11 connections in the main loop. > > udscs_connect() now internally creates GSources > by calling g_io_add_watch(). > This enables GMainLoop integration, > c

[Spice-devel] [PATCH v4 7/8] vdagent: Use GMainLoop

2017-10-16 Thread Frediano Ziglio
From: Jakub Janků Replace existing main while-loop with GMainLoop. Use GIOChannel with g_io_add_watch() to manage IO from x11 connections in the main loop. udscs_connect() now internally creates GSources by calling g_io_add_watch(). This enables GMainLoop integration, clients no longer need to