diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-02 07:13:02 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-02 07:13:02 +0000 |
| commit | 17ffbad070124b04eb9051d6991ac50860a353ca (patch) | |
| tree | 702c94b479dadabe85970b826974937f38d6b59b | |
| parent | 9287cfa97dc7af476aa39658c442a3e12751f36d (diff) | |
| download | ruby-17ffbad070124b04eb9051d6991ac50860a353ca.tar.gz ruby-17ffbad070124b04eb9051d6991ac50860a353ca.tar.xz ruby-17ffbad070124b04eb9051d6991ac50860a353ca.zip | |
* process.c (rb_f_fork): need to flush stdout and stderr before
fork(2). [ruby-talk:117715]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | process.c | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -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 @@ -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 |
