diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-22 00:34:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-22 00:34:47 +0000 |
commit | 49eeb740db417398a573ee7f5bf9538de5beaf72 (patch) | |
tree | 44870dc7ffc6daf2c23d83b2419f4d09deeb0e33 /thread.c | |
parent | 733470c1539a7f3045fa88bcf01de11b793f76af (diff) | |
download | ruby-49eeb740db417398a573ee7f5bf9538de5beaf72.tar.gz |
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
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |