From: Kazuhiro NISHIYAMA Date: 2008-03-18T22:07:31+09:00 Subject: [ruby-list:44792] Re: $stdin.rewind が exec した子プロセスに伝わらない? 西山和広です。 At Tue, 18 Mar 2008 19:26:11 +0900, SATOH Fumiyasu wrote: > > > unless stdout_reader_th.join(@timeout)というのは > > スレッドをnilかfalseを返す可能性がある実装に変えて > > しまうとはまりそう、と思ってしまいました。 > > `ri Thread#join` によると: > > ------------------------------------------------------------ Thread#join > thr.join => thr > thr.join(limit) => thr > ------------------------------------------------------------------------ > The calling thread will suspend execution and run thr. Does not > return until thr exits or until limit seconds have passed. If the > time limit expires, nil will be returned, otherwise thr is > returned. > ... > > なので、タイムアウト時に nil、それ以外はスレッドオブジェクトが > 返ると思っていたのですが、マニュアルが間違っていますか? これはThread#valueと勘違いをしてしまっていました。 -- |ZnZ(ゼット エヌ ゼット) |西山和広(Kazuhiro NISHIYAMA)