diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-10-25 20:47:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 20:47:19 +0900 |
commit | 13068ebe32a7b8a1a9bd4fc2d5f157880b374e1d (patch) | |
tree | 63db2798edf5744f64f9a3e425cd994fd5d3f7bd /io.c | |
parent | 1eac38c6093a03688c2f046cfb6a16028b9395f5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |