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

* io.c (io_binwrite): arg.offset should be updated after retry.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-12-04 22:59:25 +00:00
parent 8e864d1e86
commit 4433defb46
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Dec 5 07:58:30 2008 Tanaka Akira <akr@fsij.org>
* io.c (io_binwrite): arg.offset should be updated after retry.
Fri Dec 5 03:29:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* load.c (rb_get_load_path): returns the load path without

2
io.c
View file

@ -795,8 +795,8 @@ io_binwrite(VALUE str, rb_io_t *fptr, int nosync)
}
arg.fptr = fptr;
arg.str = str;
arg.offset = offset;
retry:
arg.offset = offset;
arg.length = n;
if (fptr->write_lock) {
r = rb_mutex_synchronize(fptr->write_lock, io_binwrite_string, (VALUE)&arg);