diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-30 10:40:59 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-30 10:40:59 +0000 |
commit | 9bff2dd7bbca10d94b56cdbb76e2af55dfb2b2ca (patch) | |
tree | dc7213be0dcc496720a846913a01688d18408882 | |
parent | 996e702b1a8a972ea72c6a3ea35657542c6988d9 (diff) |
merge revision(s) 58534: [Backport #13533]
nogvl_wait_for_single_fd must wait as its name
poll(fds, n, 0) mean no timeout and immediately return. If you want to
wait something, you need to use -1 instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@59216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | io.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +Fri Jun 30 19:37:47 2017 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * io.c (nogvl_wait_for_single_fd): nogvl_wait_for_single_fd must wait + as its name. + poll(fds, n, 0) mean no timeout and immediately return. If you want to + wait something, you need to use -1 instead. + Fri Jun 30 19:35:31 2017 Nobuyoshi Nakada <nobu@ruby-lang.org> * class.c (Init_class_hierarchy): prevent rb_cObject which is the class @@ -10136,7 +10136,7 @@ nogvl_wait_for_single_fd(int fd, short events) fds.fd = fd; fds.events = events; - return poll(&fds, 1, 0); + return poll(&fds, 1, -1); } static int @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.3.5" #define RUBY_RELEASE_DATE "2017-06-30" -#define RUBY_PATCHLEVEL 312 +#define RUBY_PATCHLEVEL 313 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 6 |