summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-07-15 16:41:54 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-07-15 16:46:08 +0900
commit645616c273aa9a328ca4ed3fceac8705e2e036cd (patch)
tree8cb84c6d98b5632280b9d1a3544d83bc0c9f1ab1 /io.c
parent8f62f12c35cf0bb3c6b48c1e59477d6b0da79067 (diff)
process.c: Call rb_thread_atfork in rb_fork_ruby
All occurrences of rb_fork_ruby are followed by a call rb_thread_fork in the created child process. This is refactoring and a potential preparation for [Feature #17795]. (rb_fork_ruby may be wrapped by Process._fork_.)
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io.c b/io.c
index 1fafff2c81..8b7e137043 100644
--- a/io.c
+++ b/io.c
@@ -6871,7 +6871,6 @@ pipe_open(VALUE execarg_obj, const char *modestr, int fmode,
# if defined(HAVE_WORKING_FORK)
pid = rb_fork_ruby(&status);
if (pid == 0) { /* child */
- rb_thread_atfork();
popen_redirect(&arg);
rb_io_synchronized(RFILE(orig_stdout)->fptr);
rb_io_synchronized(RFILE(orig_stderr)->fptr);