summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2025-03-25 15:55:33 -0700
committerJohn Hawthorn <[email protected]>2025-05-08 10:53:28 -0700
commite3452cfad26edcb3ba6e9bf818f7d02838cf676f ()
treebfff3c6d1bfcaaa742410aa1f00e5027e21ca8e7 /bootstraptest
parentf7ff380998888f5bdcd6fccda472fdd3e5f40470 (diff)
Raise error on take/send for Ractors in child processes
Ractor objects that are available in a child process should raise a `Ractor::ClosedError` exception when called with `send` or `take` Co-authored-by: John Hawthorn <[email protected]>
Notes: Merged: https://.com/ruby/ruby/pull/12982
-rw-r--r--bootstraptest/test_ractor.rb42
1 files changed, 42 insertions, 0 deletions
@@ -2213,7 +2213,49 @@ assert_equal 'ok', %q{
# fork after creating Ractor
assert_equal 'ok', %q{
Ractor.new { Ractor.receive }
_, status = Process.waitpid2 fork { }
status.success? ? "ok" : status
}