diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-10 11:21:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-10 11:21:07 +0000 |
commit | 4b70fab9153e5082a68196f7a9287ba5685860f8 (patch) | |
tree | a81b3498b51033d176accfe379abf488e01dffc3 /io.c | |
parent | a9e8b77697642e0be72af2a3198ddd025c2b31f3 (diff) | |
download | ruby-4b70fab9153e5082a68196f7a9287ba5685860f8.tar.gz |
* process.c (rb_fork_ruby): new function.
(rb_f_fork): use rb_fork_ruby instead of rb_fork.
(rb_daemon): ditto.
* io.c (pipe_open): use rb_fork_ruby instead of rb_fork.
* internal.h (rb_fork_ruby): declared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5541,7 +5541,7 @@ pipe_open(struct rb_exec_arg *eargp, const char *modestr, int fmode, convconfig_ pid = rb_fork_async_signal_safe(&status, popen_exec, &arg, arg.execp->redirect_fds, errmsg, sizeof(errmsg)); } else { - pid = rb_fork(&status, 0, 0, Qnil); + pid = rb_fork_ruby(&status); if (pid == 0) { /* child */ rb_thread_atfork(); popen_redirect(&arg); |