diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_kvp_daemon.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index ae9aa1cd97fe..81cbb6ecce89 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c | |||
@@ -1490,7 +1490,16 @@ int main(void) | |||
1490 | socklen_t addr_l = sizeof(addr); | 1490 | socklen_t addr_l = sizeof(addr); |
1491 | pfd.events = POLLIN; | 1491 | pfd.events = POLLIN; |
1492 | pfd.revents = 0; | 1492 | pfd.revents = 0; |
1493 | poll(&pfd, 1, -1); | 1493 | |
1494 | if (poll(&pfd, 1, -1) < 0) { | ||
1495 | syslog(LOG_ERR, "poll failed; error: %d %s", errno, strerror(errno)); | ||
1496 | if (errno == EINVAL) { | ||
1497 | close(fd); | ||
1498 | exit(EXIT_FAILURE); | ||
1499 | } | ||
1500 | else | ||
1501 | continue; | ||
1502 | } | ||
1494 | 1503 | ||
1495 | len = recvfrom(fd, kvp_recv_buffer, sizeof(kvp_recv_buffer), 0, | 1504 | len = recvfrom(fd, kvp_recv_buffer, sizeof(kvp_recv_buffer), 0, |
1496 | addr_p, &addr_l); | 1505 | addr_p, &addr_l); |