From 6c21d166b19b7f45594c80b7548dbce602fe86cf Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 4 Dec 2008 22:59:25 +0000 Subject: * io.c (io_binwrite): arg.offset should be updated after retry. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ed75ef4b7..5f9b2667a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 5 07:58:30 2008 Tanaka Akira + + * io.c (io_binwrite): arg.offset should be updated after retry. + Fri Dec 5 03:29:17 2008 Nobuyoshi Nakada * load.c (rb_get_load_path): returns the load path without diff --git a/io.c b/io.c index 13da5bba3..a9210f569 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