1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2004-11-02 07:13:02 +00:00
parent d329ced71d
commit 4e8d491b90
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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