Skip to content

Commit 1f57e71

Browse files
committed
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
2 parents 98c03a0 + 61b2a1a commit 1f57e71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/poll/poll.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout)
438438
pfd[i].revents = happened;
439439
rc++;
440440
}
441+
else
442+
{
443+
pfd[i].revents = 0;
444+
}
441445
}
442446

443447
return rc;

0 commit comments

Comments
 (0)