Signed-off-by: David Marchand <[email protected]>
---
contrib/ivshmem-server/ivshmem-server.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/ivshmem-server/ivshmem-server.c
b/contrib/ivshmem-server/ivshmem-server.c
index 0afa6e8..e0d4d1d 100644
--- a/contrib/ivshmem-server/ivshmem-server.c
+++ b/contrib/ivshmem-server/ivshmem-server.c
@@ -128,7 +128,8 @@ handle_new_conn(IvshmemServer *server)
/* accept the incoming connection */
unaddr_len = sizeof(unaddr);
- newfd = accept(server->sock_fd, (struct sockaddr *)&unaddr, &unaddr_len);
+ newfd = accept4(server->sock_fd, (struct sockaddr *)&unaddr, &unaddr_len,
+ SOCK_NONBLOCK);
if (newfd < 0) {
debug_log(server, "cannot accept() %s\n", strerror(errno));
return -1;
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html