mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 09:33:59 +02:00
merge revision(s) 55613: [Backport #12575]
* thread.c (rb_wait_for_single_fd): Clean up fds.revents every time before calling ppoll(2). [Bug #12575] [ruby-dev:49725] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
89594c0370
commit
be4b713d53
3 changed files with 7 additions and 1 deletions
1
thread.c
1
thread.c
|
@ -3620,6 +3620,7 @@ rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
|
|||
fds.events = (short)events;
|
||||
|
||||
retry:
|
||||
fds.revents = 0;
|
||||
lerrno = 0;
|
||||
BLOCKING_REGION({
|
||||
result = ppoll(&fds, 1, timeout, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue