summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-05 13:34:16 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-05 13:34:16 +0000
commitb6252500e474f44823fa1e5ac62ae9e520f76cb7 (patch)
tree798a012767c8d31656a9c2ebf47da2cc531e2a1f /io.c
parent9b6479d949d0e8b2ae4743b2be96271c2fc6b84d (diff)
downloadruby-b6252500e474f44823fa1e5ac62ae9e520f76cb7.tar.gz
ruby-b6252500e474f44823fa1e5ac62ae9e520f76cb7.tar.xz
ruby-b6252500e474f44823fa1e5ac62ae9e520f76cb7.zip
merges r20532 from trunk into ruby_1_9_1.
* io.c (io_binwrite): arg.offset should be updated after retry. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index eb954f22f..320950ed9 100644
--- a/io.c
+++ b/io.c
@@ -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);