aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-02 02:19:32 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-02 02:19:32 +0000
commit2ac10eb9d03f69c09ca4e6a516236510db4eeb50 (patch)
treedf50763279c3e707c98a2b04c5f9b73e82353f64 /io.c
parent9d777ea42bc91c854284f9eaef8ebac30f314567 (diff)
downloadruby-2ac10eb9d03f69c09ca4e6a516236510db4eeb50.tar.gz
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/trunk@58534 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 4cd8d4d64e..9f6c2fe871 100644
--- a/io.c
+++ b/io.c
@@ -10370,7 +10370,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