summaryrefslogtreecommitdiffstats
path: root/contrib/hyperv/tools
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-01-11 03:30:16 +0000
committersephe <sephe@FreeBSD.org>2016-01-11 03:30:16 +0000
commit50c53b96da34f5b5d15b97bb2cfad78f89b37ec7 (patch)
tree3d3f6bf42d3e814496e709bc836f0062ca987b61 /contrib/hyperv/tools
parent6b8d860df3b0ddeb68ba2b3b5588ca7075d357c6 (diff)
downloadFreeBSD-src-50c53b96da34f5b5d15b97bb2cfad78f89b37ec7.zip
FreeBSD-src-50c53b96da34f5b5d15b97bb2cfad78f89b37ec7.tar.gz
hyperv/kvp_daemon: Make poll(2) block indefinitely
Submitted by: Jun Su <junsu microsoft com> Reviewed by: Dexuan Cui <decui microsoft com>, me, adrain Approved by: adrian Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4762
Diffstat (limited to 'contrib/hyperv/tools')
-rw-r--r--contrib/hyperv/tools/hv_kvp_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hyperv/tools/hv_kvp_daemon.c b/contrib/hyperv/tools/hv_kvp_daemon.c
index 50ae3ed..9b9e3a6 100644
--- a/contrib/hyperv/tools/hv_kvp_daemon.c
+++ b/contrib/hyperv/tools/hv_kvp_daemon.c
@@ -1437,7 +1437,7 @@ main(int argc, char *argv[])
for (;;) {
- r = poll (hv_kvp_poll_fd, 1, 100);
+ r = poll (hv_kvp_poll_fd, 1, INFTIM);
KVP_LOG(LOG_DEBUG, "poll returned r = %d, revent = 0x%x\n",
r, hv_kvp_poll_fd[0].revents);
OpenPOWER on IntegriCloud