aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hv')
-rw-r--r--tools/hv/hv_vss_daemon.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
index 64112e193552..5febe3542f79 100644
--- a/tools/hv/hv_vss_daemon.c
+++ b/tools/hv/hv_vss_daemon.c
@@ -200,7 +200,16 @@ int main(void)
200 socklen_t addr_l = sizeof(addr); 200 socklen_t addr_l = sizeof(addr);
201 pfd.events = POLLIN; 201 pfd.events = POLLIN;
202 pfd.revents = 0; 202 pfd.revents = 0;
203 poll(&pfd, 1, -1); 203
204 if (poll(&pfd, 1, -1) < 0) {
205 syslog(LOG_ERR, "poll failed; error:%d %s", errno, strerror(errno));
206 if (errno == EINVAL) {
207 close(fd);
208 exit(EXIT_FAILURE);
209 }
210 else
211 continue;
212 }
204 213
205 len = recvfrom(fd, vss_recv_buffer, sizeof(vss_recv_buffer), 0, 214 len = recvfrom(fd, vss_recv_buffer, sizeof(vss_recv_buffer), 0,
206 addr_p, &addr_l); 215 addr_p, &addr_l);