summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-31 16:16:39 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-31 16:16:39 +0000
commitf8bdd8dd08b021b71d234c1368d83ab7c9ebad49 (patch)
treeed4fb4f1c109d043aa31b9c84e01a64c5ece0b4d /io.c
parentd369a50c2bb5f40dee850b4de5f091b4a69181d4 (diff)
* io.c (pipe_open): add RB_GC_GUARD.
This caused failure when test/ruby/test_argf.rb is executed with GC.stress = true in mswin32_90 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index b67bcaf9c6..b08561befa 100644
--- a/io.c
+++ b/io.c
@@ -5112,6 +5112,9 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
break;
}
}
+
+ RB_GC_GUARD(argbuf);
+
if (eargp)
rb_run_exec_options(&sarg, NULL);
if ((fmode & FMODE_READABLE) && (fmode & FMODE_WRITABLE)) {