From: Eric Wong Date: 2014-10-16T03:48:52+00:00 Subject: [ruby-core:65742] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race Nobuyoshi Nakada 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.