From: Robert Klemme Date: 2008-07-02T00:18:40+09:00 Subject: Re: in select: interrupt 2008/7/1 Mark Firestone : > Thanks for the advice. I can provide more of the code, or all the code... > > The specific error messages are: > > fsed.rb:681:in 'select': Interrupt > from fsed.rb 681:in 'run' > from edit.rb:93 Hm, maybe your process receives a signal or the thread is somehow interrupted. > -or- > the application simply reports "Quit", with no error at all Then you're probably catch an exception somewhere without rethrowing or reporting it. > Let me send you the whole loop... it's long and not refactored and a > mess.... so no laughing (out loud...) Laughing is usually not my reaction to this kind of mess... > I'm not sure what else I could provide. Unix low level io is not one > of my skills... 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. Also, as I said, I'd start with the regular #read and not use #sysread. Cheers robert -- use.inject do |as, often| as.you_can - without end