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
This commit is contained in:
Sepherosa Ziehau 2016-01-11 03:30:16 +00:00
parent 84eacaf728
commit 868a59a7e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293653

View File

@ -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);