Nobuyoshi Nakada <nobu / ruby-lang.org> wrote:
> On 2014/10/16 10:10, normal / ruby-lang.org 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.