Forum: Ruby-dev cannot stop with Ctrl+C

Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-24 01:37
(Received via mailing list)
Issue #1952 has been updated by mame (Yusuke Endoh).


ささださん、現状を教えてください。

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Feature #1952: cannot stop with Ctrl+C
https://bugs.ruby-lang.org/issues/1952#change-33689

Author: usa (Usaku NAKAMURA)
Status: Assigned
Priority: High
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: 2.0.0


=begin
 以下のスクリプトがCtrl+Cで停止せず、Ctrl+C押下後はkill -9でしか殺せません。

 Thread.new do
   begin
     begin
       sleep
     ensure
       raise
     end
   rescue
     retry
   end
 end.join
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.