summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 2ffb1746759..405aa7d2d2f 100644
--- a/io.c
+++ b/io.c
@@ -1527,6 +1527,8 @@ pipe_open(pname, mode)
ruby_sourcefile, ruby_sourceline, pname);
_exit(127);
}
+ rb_io_synchronized(RFILE(orig_stdout)->fptr);
+ rb_io_synchronized(RFILE(orig_stderr)->fptr);
return Qnil;
case -1: /* fork failed */