summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-02 07:13:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-02 07:13:02 +0000
commit4e8d491b9024549fd8237531e4dab5f72af5704a (patch)
tree702c94b479dadabe85970b826974937f38d6b59b /process.c
parentd329ced71d40ec3e4303904f4dbd59495b70c496 (diff)
* process.c (rb_f_fork): need to flush stdout and stderr before
fork(2). [ruby-talk:117715] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/process.c b/process.c
index b7adec4..004a351 100644
--- a/process.c
+++ b/process.c
@@ -1257,6 +1257,12 @@ rb_f_fork(obj)
int pid;
rb_secure(2);
+
+#ifndef __VMS
+ fflush(stdout);
+ fflush(stderr);
+#endif
+
switch (pid = fork()) {
case 0:
#ifdef linux