Skip to content

Commit 96d4b17

Browse files
committed
Merge branch 'rb/compat-poll-fix' into maint
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 dd5c88a + 61b2a1a commit 96d4b17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)