Skip to content

Override Process._fork? #324

Open
Open
@jamiemccarthy

Description

@jamiemccarthy

Hi, I just noticed this note in the README from 2019 (Ruby 2.6):

https://github.com/rubyjs/mini_racer?tab=readme-ov-file#fork-safety

In 2021, Ruby 3.1 was released with the addition of Process._fork:

https://bugs.ruby-lang.org/issues/17795

_fork is meant to be patched, so code that needs a performant notification at fork time can make the necessary changes at that time, without having to poll.

Ruby 3.0 is EOL (and 3.1 will be soon), so every supported Ruby should have this method.

Is it worthwhile to try patching _fork and making use of that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions