[Spice-devel] [PATCH spice-server 1/2] test-websocket: Some Windows compatibility
Frediano Ziglio
fziglio at redhat.com
Mon Aug 5 13:52:10 UTC 2019
ping
> ping the series
>
> >
> > Don't call close but socket_close.
> >
> > Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> > ---
> > server/tests/test-websocket.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > Currently the executable cannot run on Windows but it does not hurt
> > to make the source more compatible with that system.
> >
> > diff --git a/server/tests/test-websocket.c b/server/tests/test-websocket.c
> > index dc7b7d342..e74cb5497 100644
> > --- a/server/tests/test-websocket.c
> > +++ b/server/tests/test-websocket.c
> > @@ -193,10 +193,10 @@ main(int argc, char **argv)
> > ++num_connections;
> > handle_client(new_sock);
> >
> > - close(new_sock);
> > + socket_close(new_sock);
> > }
> >
> > - close(sock);
> > + socket_close(sock);
> > printf("handled %u connections\n", num_connections);
> > return 0;
> > }
More information about the Spice-devel
mailing list