1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (io_fflush): IO#flush problem within threads. a patch from

<s.wanabe at gmail.com> in [ruby-dev:34595].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-05-05 11:12:17 +00:00
parent 58967f4fcd
commit d7f6b873da
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon May 5 20:07:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (io_fflush): IO#flush problem within threads. a patch from
<s.wanabe at gmail.com> in [ruby-dev:34595].
Mon May 5 19:58:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* compile.c (defined_expr): protect some expression from

4
io.c
View file

@ -584,8 +584,8 @@ io_fflush(rb_io_t *fptr)
return 0;
}
if (0 <= r) {
fptr->wbuf_off = r;
fptr->wbuf_len = r;
fptr->wbuf_off += r;
fptr->wbuf_len -= r;
errno = EAGAIN;
}
if (rb_io_wait_writable(fptr->fd)) {