Project

General

Profile

ActionsLike0

Feature #1952

closed

cannot stop with Ctrl+C

Added by usa (Usaku NAKAMURA) over 15 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
[ruby-dev:39107]

Description

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

Thread.new do
begin
begin
sleep
ensure
raise
end
rescue
retry
end
end.join
=end


Related issues 5 (0 open5 closed)

Related to Ruby - Bug #1963: redo'ing deadlock causes [BUG]Closed08/20/2009Actions
Related to Ruby - Bug #2558: r24591 causes SegfaultClosed01/05/2010Actions
Related to Ruby - Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.Closedko1 (Koichi Sasada)01/17/2011Actions
Related to Ruby - Bug #6131: Ctrl-C handler do not work from exec process (Windows)Closedh.shirosaki (Hiroshi Shirosaki)03/12/2012Actions
Related to Ruby - Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しないClosedkosaki (Motohiro KOSAKI)Actions

Added by kosaki (Motohiro KOSAKI) over 12 years ago

Revision a9162789

  • thread.c (rb_thread_terminate_all): broadcast eTerminateSignal
    again when Ctrl-C was pressed. [Feature #1952] [ruby-dev:39107]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

ActionsLike0

Also available in: Atom PDF