diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 22:59:25 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 22:59:25 +0000 |
| commit | 6c21d166b19b7f45594c80b7548dbce602fe86cf (patch) | |
| tree | 3f723e81d969455e69ed40bcc71b3c86a856209a /io.c | |
| parent | 876a5f24c2fbdc27bf5e6ea6991feac2d9dbfa1b (diff) | |
| download | ruby-6c21d166b19b7f45594c80b7548dbce602fe86cf.tar.gz ruby-6c21d166b19b7f45594c80b7548dbce602fe86cf.tar.xz ruby-6c21d166b19b7f45594c80b7548dbce602fe86cf.zip | |
* 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
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); |
