Issue #5368 has been updated by kosaki (Motohiro KOSAKI).


> ???????#1952 ??с????с???????????????????????????? Ctrl-c ?????若??????????????泣????鴻?????????緇???????????篋??????????障?????????罅????SEGV???綣????莎激?????????NG???

????????<????c??障????????吾?????SEGV???綣????莎激??????????篋???????с?障???????????わ????ゃ??純?若?壕В??上?????????????????????с????????????exit()???????????????御????≪????????????????????????????????????????MVM??????????????????綣????莎激????????
SEGV???????????????????????NULL?????с????????ャ????????????罅????ゃ???????pthread_cond_destruct()?????ャ?鴻????????????純?若?剛戎??筝???若?喝?冴???????????EBUSY??уけ????????????????????障???????????
----------------------------------------
Bug #5368: ensure膀????sleep???????????????Thread????????????ゃ?潟?帥?????帥??腟?篋????????
https://bugs.ruby-lang.org/issues/5368#change-34052

Author: Glass_saga (Masaki Matsushita)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: -


=begin
罨<??潟?若?????絎?茵??????????CPU篏睡??????莊潟????????c????倶?????????ゃ?潟?帥?????帥??腟?篋??????障????????

 Thread.new do
   begin
     sleep
   ensure
     sleep
   end
 end

????rb_thread_terminate_all??с?????????1????????????????????????鴻????????絲??????terminate_i???絎?茵??????????障????????ensure膀????sleep???????????????Thread???????????????????Thread?????????障?障???c?????障??while(!rb_thread_alone())?????♂?????若??????c?????障????障?????

while(!rb_thread_alone())?????????若????с???潟????鴻???????????<?ゃ?潟?鴻????????с????c????翫?????????????????????鴻????????絲??????terminate_i???絎?茵????????????????patch?????吾????????????????????????違???????????????障????????
patch???羞私???????障?????patch?????????test-all????????鴻????障?????
=end


-- 
http://bugs.ruby-lang.org/