Browse Source

Merge branch 'rb/compat-poll-fix'

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
maint
Junio C Hamano 7 years ago
parent
commit
1f57e71fab
  1. 4
      compat/poll/poll.c

4
compat/poll/poll.c

@ -438,6 +438,10 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout) @@ -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;

Loading…
Cancel
Save