From b6252500e474f44823fa1e5ac62ae9e520f76cb7 Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 5 Dec 2008 13:34:16 +0000 Subject: 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 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') 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); -- cgit