diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-05 13:34:16 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-05 13:34:16 +0000 |
commit | 72c96b806cb4c12f003837ab6aca89e76621dbf0 (patch) | |
tree | 798a012767c8d31656a9c2ebf47da2cc531e2a1f /io.c | |
parent | 0f0c5653a3faedf2c39d0ca7ae6d93619898524f (diff) |
merges r20532 from trunk into ruby_1_9_1.
* io.c (io_binwrite): arg.offset should be updated after retry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |