[#6728] Ruby 1.3.3-990507 — matz <matz@...>

Ruby 1.3.3-990507 is out, check out:

34 messages 1999/05/07
[#6731] Re: Ruby 1.3.3-990507 — Katsuyuki Komatsu <komatsu@...> 1999/05/07

小松です。

[#6779] Re: private inner class (Re: Re: class def in class def) — Koji Oda <oda@...1.qnes.nec.co.jp>

小田@QNES です。

13 messages 1999/05/13

[#6789] Ruby 1.3.3-990513 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990513 is out, check out:

59 messages 1999/05/13
[#6811] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/14

小田@QNES です。

[#6814] Re: Ruby 1.3.3-990513 — matz@... (Yukihiro Matsumoto) 1999/05/15

まつもと ゆきひろです

[#6821] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/16

小田@QNES です。

[#6790] Re: Ruby 1.3.3-990513 — Katsuyuki Komatsu <komatsu@...> 1999/05/13

小松です。

[#6891] Ruby 1.3.3-990518 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990518 is out, check out:

19 messages 1999/05/18

[#6919] ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...>

ext/socket/getaddrinfo.cに以下のpatchをおねがいします。

22 messages 1999/05/20
[#6921] Re: ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...> 1999/05/20

[#7034] Ruby 1.3.4-990531 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.4-990531 is out, check out:

25 messages 1999/05/31

[ruby-dev:7000] IOError in threading

From: Masaki Fukushima <fukusima@...>
Date: 1999-05-26 14:45:53 UTC
List: ruby-dev #7000
福嶋です。

以下のスクリプトを実行させるとIOErrorが発生しますが、その例外を捕
捉できません。

###################################
Thread.abort_on_exception = false
io = IO.popen('cat', 'r')

Thread.start {
  begin
    io.gets
  rescue IOError
    p 'thread rescue'
    p $!
  ensure
    p 'thread ensure'
  end
}
begin
  sleep 1
  io.close
rescue IOError
  p 'main rescue'
  p $!
ensure
  p 'main ensure'
end
###################################

このスクリプトを実行すると

foo.rb:16: stream closed (IOError)

と表示されるだけで、rescueやensureの中身が実行されません。
そもそも、どちらのスレッドで例外が発生しているのでしょう?

---
福嶋正機

In This Thread

Prev Next