Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rb/compat-poll-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Oct 2017 05:19:05 +0000
(14:19 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Oct 2017 05:19:05 +0000
(14:19 +0900)
Backports a moral equivalent of 2015 fix to the poll emulation from
the upstream gnulib to fix occasional breakages on HPE NonStop.
* rb/compat-poll-fix:
poll.c: always set revents, even if to zero
compat/poll/poll.c
patch
|
blob
|
history
raw
(from parent 1:
dd5c88a
)
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;