From: Me Me Date: 2008-06-30T20:14:18+09:00 Subject: Re: Sleep in a multithreaded environment Me Me wrote: > Hi, > > I tried this: > > pipe=IO.popen("hang.exe") > io=select([pipe],nil,nil,10) #10 - timeout > if io==nil > puts "DEAD" > end > > with hang.exe a process that just hangs. > It doesn't seem that the process is launched at all, and it goes on > without waiting. Actually I checked and the process is running but it became a zombie. It seems that the select doesn't wait -- Posted via http://www.ruby-forum.com/.