summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-05 16:01:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-05 16:01:53 +0000
commit8afd99d671f0aeb4ba8caa2d368b99806ecace6a (patch)
tree608bbe319a63f267e97ddaf9e4dc8bf110aadd93 /io.c
parentddc2b83b3b0f65e41a462b387fe5b2ac0175ffa7 (diff)
* string.c (rb_str_locktmp): check STR_TMPLOCK flag before
locking. [ruby-dev:24727] * gc.c (gc_mark): stricter GC stack check. * string.c (str_gsub): should have removed rb_str_unlocktmp(str). [ruby-dev:24708] * string.c (str_gsub): string modify check no longer based on tmplock. [ruby-dev:24706] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io.c b/io.c
index 37a30fa..195392e 100644
--- a/io.c
+++ b/io.c
@@ -463,10 +463,8 @@ io_write(io, str)
f = GetWriteFile(fptr);
rb_str_locktmp(str);
- rb_str_locktmp(str);
n = rb_io_fwrite(RSTRING(str)->ptr, RSTRING(str)->len, f);
rb_str_unlocktmp(str);
- rb_str_unlocktmp(str);
if (n == -1L) rb_sys_fail(fptr->path);
if (fptr->mode & FMODE_SYNC) {
io_fflush(f, fptr);