mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (io_read): should freeze buffer before thread context
switch. [ruby-dev:24442] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
46c777ac14
commit
68a9d6820d
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
Thu Oct 7 12:55:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (io_read): should freeze buffer before thread context
|
||||
switch. [ruby-dev:24442]
|
||||
|
||||
* pack.c (pack_unpack): string conversion should at the top of the
|
||||
method. [ruby-dev:24439]
|
||||
|
||||
|
|
2
io.c
2
io.c
|
@ -1070,8 +1070,8 @@ io_read(argc, argv, io)
|
|||
}
|
||||
if (len == 0) return str;
|
||||
|
||||
READ_CHECK(fptr->f);
|
||||
FL_SET(str, FL_FREEZE);
|
||||
READ_CHECK(fptr->f);
|
||||
n = rb_io_fread(RSTRING(str)->ptr, len, fptr->f);
|
||||
FL_UNSET(str, FL_FREEZE);
|
||||
if (n == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue