[Spice-devel] [PATCH xf86-video-qxl 1/4] Turn off agent mode if the vdagent disconnects.

Christophe Fergeau cfergeau at redhat.com
Fri Oct 16 09:00:25 PDT 2015


ACK.

On Fri, Oct 02, 2015 at 11:21:00AM -0500, Jeremy White wrote:
> Also refine an error message slightly.
> 
> Signed-off-by: Jeremy White <jwhite at codeweavers.com>
> ---
>  src/spiceqxl_vdagent.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/spiceqxl_vdagent.c b/src/spiceqxl_vdagent.c
> index 4208233..398c600 100644
> --- a/src/spiceqxl_vdagent.c
> +++ b/src/spiceqxl_vdagent.c
> @@ -56,11 +56,12 @@ static int vmc_read(SpiceCharDeviceInstance *sin, uint8_t *buf, int len)
>          if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) {
>              return 0;
>          }
> -        fprintf(stderr, "ERROR: vdagentd died\n");
> +        fprintf(stderr, "ERROR: vdagent died\n");
>          close(virtio_client_fd);
>          virtio_client_fd = -1;
>          vdagent_sin.qxl->core->watch_remove(virtio_client_watch);
>          virtio_client_watch = NULL;
> +        spice_server_set_agent_mouse(vdagent_sin.qxl->spice_server, 0);
>      }
>      return nbytes;
>  }
> -- 
> 2.1.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151016/2c07c993/attachment.sig>


More information about the Spice-devel mailing list