[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65742] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race

From: Eric Wong <normalperson@...>
Date: 2014-10-16 03:48:52 UTC
List: ruby-core #65742
Nobuyoshi Nakada <[email protected]> wrote:
> On 2014/10/16 10:10, [email protected] wrote:
> >     Signal delivery is not guaranteed to be immediate, a process may
> >     exit before receiving signal it sent itself.
> 
> When sending SIGSEGV to self, rb_f_kill() calls ruby_kill() which waits signal delivery.
> In what situation the race could happen?

I was looking at test failures; I think [Bug #10389] is related
(but I have not tried to translate).  So maybe these commits are
unnecessary right now...

That said, I do not know why we need special-cases for signals to self.
Seems like it can hide bugs for alternative Ruby implementations.

In This Thread