summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-10-25 20:47:19 +0900
committerGitHub <noreply@github.com>2021-10-25 20:47:19 +0900
commit13068ebe32a7b8a1a9bd4fc2d5f157880b374e1d (patch)
tree63db2798edf5744f64f9a3e425cd994fd5d3f7bd /io.c
parent1eac38c6093a03688c2f046cfb6a16028b9395f5 (diff)
process.c: Add Process._fork (#5017)
* process.c: Add Process._fork This API is supposed for application monitoring libraries to hook fork event. [Feature #17795] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Notes
Notes: Merged-By: mame <mame@ruby-lang.org>
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4cd8a4fa5d..fceb7019f1 100644
--- a/io.c
+++ b/io.c
@@ -6897,7 +6897,7 @@ pipe_open(VALUE execarg_obj, const char *modestr, int fmode,
}
else {
# if defined(HAVE_WORKING_FORK)
- pid = rb_fork_ruby(&status);
+ pid = rb_call_proc__fork();
if (pid == 0) { /* child */
popen_redirect(&arg);
rb_io_synchronized(RFILE(orig_stdout)->fptr);