summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-30 10:40:59 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-30 10:40:59 +0000
commit9bff2dd7bbca10d94b56cdbb76e2af55dfb2b2ca (patch)
treedc7213be0dcc496720a846913a01688d18408882 /io.c
parent996e702b1a8a972ea72c6a3ea35657542c6988d9 (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
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 72fbff3e3b..aeea680652 100644
--- a/io.c
+++ b/io.c
@@ -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