[#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:65741] Re: [ruby-cvs:55121] normal:r47971 (trunk): test/ruby/test_rubyoptions.rb: fix race

From: Nobuyoshi Nakada <nobu@...>
Date: 2014-10-16 02:45:57 UTC
List: ruby-core #65741
On 2014/10/16 10:10, [email protected] wrote:
> normal	2014-10-16 10:10:53 +0900 (Thu, 16 Oct 2014)
> 
>   New Revision: 47971
> 
>   http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47971
> 
>   Log:
>     test/ruby/test_rubyoptions.rb: fix race
>     
>     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?

In This Thread

Prev Next