Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Override `Process._fork`?

Đang mở
#324 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, ruby
Lĩnh vực
backend

Hướng nghiên cứu

Read the README's “Fork safety” section and the linked Ruby issue 17795 to understand the existing workaround and the _fork hook. Then inspect the fork handling entry points in mini_racer and assess whether patching _fork is worthwhile across supported Ruby versions. Done means there is a supported approach with its fork-safety behavior documented and verified.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
JavaScript
Star
628
Fork
100
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rubyjs/mini_racer

Tất cả issue của rubyjs/mini_racer

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.