aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-12 23:23:25 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-12 23:23:25 +0000
commitc6b85fcd0152b482b051bee5f7d5afbc975c9d85 (patch)
treec644d4a8fdd8200fe199deddd41fff10814308df /test/psych
parentcb5598a419fdbd5851da7ca818ad275266532fb2 (diff)
downloadruby-c6b85fcd0152b482b051bee5f7d5afbc975c9d85.tar.gz
timer_thread: do not close pipes around fork
There's actually no need to close the pipes used by the sleepy timer thread before forking, only to stop the timer thread itself. Instead, we only close the parent pipes in the child process, either via close-on-exec flag or when reinitializing the timer thread. This change will be necessary when we allow rb_wait_for_single_fd and rb_thread_fd_select to wait on the timer_thread_pipe.normal[0] directly and eliminate timer thread. I don't anticipate compatibility problems with this change alone. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych')
0 files changed, 0 insertions, 0 deletions