Project

General

Profile

Actions

Bug #20146

open

Code using Ractor with env `RUBY_MAX_CPU=1` ends with unreachable

Added by shia (Sangyong Sim) 11 months ago. Updated 11 months ago.

Status:
Assigned
Target version:
-
[ruby-core:116003]

Description

Reproducible code

# sample-code.rb
Ractor.new { 1 }
RUBY_MAX_CPU=1 ruby sample-code.rb # This will not end with exit code 0
RUBY_MAX_CPU=2 ruby sample-code.rb # This ends with exit code 0 as expected

Expected

process with RUBY_MAX_CPU=1 exits successfully as same as RUBY_MAX_CPU more than 1.

Actions

Also available in: Atom PDF

Like0
Like0Like0