Issue #8730 has been updated by nobu (Nobuyoshi Nakada).


kosaki (Motohiro KOSAKI) wrote:
> > ???????????????????解説????????????????????????????????????????????
> 
> ?念???????????????????????????????????????
> 
> ???????????? http://kwfsws.g.hatena.ne.jp/kiwofusi/20111231/1325314356 ??????????
> rescue Exception => e ??????????????????????????????????????????????注???????????????????????述??
> ????????? "ruby timeout ??" ????索???????似???????????注????????????????????????

?????????

> 次???????????????????????????????????????????????rescue Timeout::Error, StandardError =>e
> ????????????????????????????????????? http://d.hatena.ne.jp/dreammind/20090217/1234813224
> 
> ??????????????????????????????

Timeout.timeout???????????????????????(?????????????????)Timeout::Error?????????????????影?????????????

> ?????????????議????????Pros/Cons???????????????????????????????????????????????

????????????rescue????????????????????以????????????????????????????????????????????????????????????????????試????????????????????
???????????????????????????????timeout???????????????中???Exception???rescue??????timeout???起?????????????????????????????????????????????????????????????????????????????????????????????????????????
????????????????????????????



----------------------------------------
Bug #8730: "rescue Exception" rescues Timeout::ExitException
https://bugs.ruby-lang.org/issues/8730#change-41400

Author: takiuchi (Genki Takiuchi)
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: current: 2.1.0
ruby -v: 2.0.0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


=begin
Timeout.timeout ?????????????? rescue Exception ??????????????????????????????????????????????
????????????????????????????????????? Timeout::ExitException ????????派?????????足?????????????
正????? Timeout::Error ?????????????????

?)

  timeout 1 do
    begin
      sleep 3
    rescue Exception => e
      puts e.class.superclass #=> "Timeout::ExitException"
    end
  end
=end


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