Re: [PATCH spice-server 1/2] test-websocket: Some Windows compatibility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ping the series

> 
> Don't call close but socket_close.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  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;
>  }
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]