Project

General

Profile

Actions

Feature #21717

open

Introduce Fiber::Scheduler#process_fork hook

Feature #21717: Introduce Fiber::Scheduler#process_fork hook

Added by noteflakes (Sharon Rosner) 40 minutes ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:123928]

Description

When using a fiber scheduler and forking a process, the child process "inherits" the fiber scheduler. For the fiber scheduler to be usable in the forked process, its internal state should in most cases be reset.

I propose the introduction of a Fiber::Scheduler#process_fork hook, called by the Ruby runtime immediately after a fork.

The associated PR: https://github.com/ruby/ruby/pull/15342

No data to display

Actions

Also available in: PDF Atom