1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

thread.c: return the error

* thread.c (rb_wait_for_single_fd): return the error when ppoll
  failed.  fix r51319.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-07-22 00:34:47 +00:00
parent 8c1a75a3bf
commit 47e0957e21

View file

@ -3694,6 +3694,7 @@ rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
RUBY_VM_CHECK_INTS_BLOCKING(th);
} while (result < 0 && retryable(errno = lerrno) && poll_update());
if (result < 0) return -1;
if (fds.revents & POLLNVAL) {
errno = EBADF;