summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--process.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7863707..29ead92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 2 16:05:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (rb_f_fork): need to flush stdout and stderr before
+ fork(2). [ruby-talk:117715]
+
Tue Nov 2 01:20:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): nail down dyna_var node when Proc object
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