From 87ba383aa38dbf81b6aa3fa9c771e7ac715f3c96 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 26 Apr 2010 21:21:07 +0000 Subject: * io.c (select_internal): IO which cbuf is not empty is readable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 30150fc507..b1ca613169 100644 --- a/io.c +++ b/io.c @@ -7153,7 +7153,7 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd for (i=0; ifd, &fds[0]); - if (READ_DATA_PENDING(fptr)) { /* check for buffered data */ + if (READ_DATA_PENDING(fptr) || READ_CHAR_PENDING(fptr)) { /* check for buffered data */ pending++; rb_fd_set(fptr->fd, &fds[3]); } -- cgit v1.2.3