diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-26 21:21:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-26 21:21:07 +0000 |
commit | 87ba383aa38dbf81b6aa3fa9c771e7ac715f3c96 (patch) | |
tree | c9256559fb39ac0d06d53cf9413c6a279ef3014f /io.c | |
parent | 18abe0e8c2a5ee96f6c813eac102bd75f42fb148 (diff) |
* 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
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7153,7 +7153,7 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd for (i=0; i<RARRAY_LEN(read); i++) { GetOpenFile(rb_io_get_io(RARRAY_PTR(read)[i]), fptr); rb_fd_set(fptr->fd, &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]); } |