From 0fc967c3f1f3f0cb15fc70d32ac70d9cb8608f36 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 8 Jul 2021 21:16:27 +0100 Subject: [PATCH] Reads from the vhost_call_fd do return -EINTR when we loop multiple times Signed-off-by: David Woodhouse --- vhost.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vhost.c b/vhost.c index 8b25cec3..5e045292 100644 --- a/vhost.c +++ b/vhost.c @@ -547,9 +547,7 @@ int vhost_tun_mainloop(struct openconnect_info *vpninfo, int *timeout, int reada if (!did_work && readable) { uint64_t evt; if (read(vpninfo->vhost_call_fd, &evt, sizeof(evt)) != sizeof(evt)) { - /* Can never happen */ - vpn_progress(vpninfo, PRG_ERR, - _("Failed to read vhost-net call eventfd\n")); + /* Do nothing */ } } -- 2.50.1