[#9642] Re: host.conf は参照しないの? — akira yamada / やまだあきら <akira@...>

15 messages 2000/05/09

[#9672] IO.popen — Koji Arai <JCA02266@...>

新井です。

22 messages 2000/05/13
[#9673] Re: IO.popen — Koji Arai <JCA02266@...> 2000/05/13

新井です。

[#9682] Re: IO.popen — matz@... (Yukihiro Matsumoto) 2000/05/14

まつもと ゆきひろです

[#9676] support mingw32 — WATANABE Hirofumi <eban@...>

わたなべです.

32 messages 2000/05/13
[#9678] Re: support mingw32 — Masaki Suketa <CQN02273@...> 2000/05/14

助田です.

[#9680] Re: support mingw32 — WATANABE Hirofumi <eban@...> 2000/05/14

わたなべです.

[#9686] Re: support mingw32 — Katsuyuki Komatsu <komatsu@...> 2000/05/15

小松です。

[#9687] Re: support mingw32 — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/05/15

わたなべです.

[#9806] rescue variable syntax — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

40 messages 2000/05/24
[#9811] Re: rescue variable syntax — ARIMA Yasuhiro <fit0298@...> 2000/05/24

有馬です。

[#9814] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/24

まつもと ゆきひろです

[#9821] Re: rescue variable syntax — nobu.nakada@... 2000/05/25

なかだです。

[#9823] Re: rescue variable syntax — ARIMA Yasuhiro <fit0298@...> 2000/05/25

有馬です。

[#9833] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/25

まつもと ゆきひろです

[#9861] Re: rescue variable syntax — gotoken@... (GOTO Kentaro) 2000/05/25

ごとけんです

[#9866] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/25

まつもと ゆきひろです

[#9870] Re: rescue variable syntax — nagai@... 2000/05/26

永井@知能.九工大です.

[#9873] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/27

まつもと ゆきひろです

[#9812] Forward: Error in NT makefile (PR#7) — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

21 messages 2000/05/24
[#9820] Re: Forward: Error in NT makefile (PR#7) — Katsuyuki Komatsu <komatsu@...> 2000/05/25

小松です。

[#9842] Re: Forward: Error in NT makefile (PR#7) — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/05/25

わたなべです.

[#9855] Re: Forward: Error in NT makefile (PR#7) — Katsuyuki Komatsu <komatsu@...> 2000/05/25

小松です。

[#9879] Re: Forward: Error in NT makefile (PR#7) — WATANABE Hirofumi <eban@...> 2000/05/28

わたなべです.

[#9857] $0 handling on NT — Katsuyuki Komatsu <komatsu@...>

小松です。

18 messages 2000/05/25
[#9869] Re: $0 handling on NT — nobu.nakada@... 2000/05/26

なかだです。

[ruby-dev:9909] Re: timeout.rb

From: WATANABE Tetsuya <tetsu@...>
Date: 2000-05-30 04:56:51 UTC
List: ruby-dev #9909
渡辺哲也です。

In message "[ruby-dev:9860] Re: timeout.rb"
    on 00/05/26, Wakou Aoyama <wakou@fsinet.or.jp> writes:

|青山です。

|Thread 中の最初の処理である sleep にも行き着いていません。

関連している話題だと思うのですが。

Linux 2.2 系、ruby-1.5.4 2000-05-28 での
現象です。2000-05-25 では起きません。

これで、Thread ないの処理がいっさい実行
されません。

strace した場合、socket 関係のシステムコー
ルも発行されていません。

------------------------------
require 'socket'
require 'thread'
require 'timeout'

arr = []

Thread.start do
  arr.push(Thread.current)

  http = false
  is_timeout = timeout(10) {
    http = TCPSocket.open('localhost', 'http')
  }

  http.print 'GET /', "\r\n"
  while l = http.gets
    print l
  end
end

sleep 3

arr.each do |a|
  a.join
end
------------------------------

require 'timeout' よりあとの strace の出
力です。

------------------------------
read(4, "#\n# timeout.rb -- execution time"..., 4096) = 855
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2aabe000, 4096)                = 0
rt_sigaction(SIGVTALRM, {0x805e758, [], SA_RESTART|0x4000000}, NULL, 8) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 10000}, it_value={0, 10000}}, NULL) = 0
brk(0x80fe000)                          = 0x80fe000
brk(0x8100000)                          = 0x8100000
brk(0x8105000)                          = 0x8105000
brk(0x810a000)                          = 0x810a000
time(NULL)                              = 959660989
gettimeofday({959660989, 853914}, NULL) = 0
gettimeofday({959660989, 853973}, NULL) = 0
select(1, [], [], [], {0, 0})           = 0 (Timeout)
time(NULL)                              = 959660989
gettimeofday({959660989, 854435}, NULL) = 0
gettimeofday({959660989, 854492}, NULL) = 0
select(1, [], [], [], {0, 0})           = 0 (Timeout)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettimeofday({959660989, 855076}, NULL) = 0
select(1, [], [], [], {2, 999359})      = 0 (Timeout)
gettimeofday({959660992, 846434}, NULL) = 0
select(1, [], [], [], {0, 8000})        = 0 (Timeout)
gettimeofday({959660992, 856368}, NULL) = 0
select(1, [], [], [], {0, 0})           = 0 (Timeout)
time(NULL)                              = 959660992
close(2)                                = 0
close(1)                                = 0
close(0)                                = 0
_exit(0)                                = ?
------------------------------

正常パターンでは、timeout.rb の処理の後
socket 関係の処理をはじめるのですが...

-- 
WATANABE Tetsuya
 e-mail: Tetsuya_WATANABE@hp.com
         tetsu@jpn.hp.com

In This Thread