From: Mark Firestone Date: 2008-07-02T06:48:42+09:00 Subject: Re: in select: interrupt Downgraded Ruby from 1.8.7 to 1.8.6 and the problem went away. Hmmm.... On Tue, Jul 1, 2008 at 4:25 PM, Mark Firestone wrote: > On Tue, Jul 1, 2008 at 4:18 PM, Robert Klemme > wrote: > >> Hm, maybe your process receives a signal or the thread is somehow interrupted. >> >> Then you're probably catch an exception somewhere without rethrowing >> or reporting it. >> >> >> Laughing is usually not my reaction to this kind of mess... >> > Heh. So, what is your usual reaction? Tears? Dispair? It's a mess > I intend to clean up, I assure you... (; > >> >> You are doing at least one mistake: you #select with a timeout but do >> not check return values. With a timeout #select might return without >> anything to read - simply because time has passed. > > Shouldn't it return nil in that case? > >> Also, as I said, I'd start with the regular #read and not use #sysread. > > Ok. What's the difference? > > > -- > 001100010010011110100001101101110011 > > -- 001100010010011110100001101101110011