Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sg/travis-fixes' into maint
[gitweb.git]
/
compat
/
poll
/
poll.c
diff --git
a/compat/poll/poll.c
b/compat/poll/poll.c
index b10adc780fc334383f2684d21fa1c5a8d92771b9..ae03b74a6f4e9c8ff6d519d9a784ab6b84179872 100644
(file)
--- a/
compat/poll/poll.c
+++ b/
compat/poll/poll.c
@@
-438,6
+438,10
@@
poll (struct pollfd *pfd, nfds_t nfd, int timeout)
pfd[i].revents = happened;
rc++;
}
+ else
+ {
+ pfd[i].revents = 0;
+ }
}
return rc;