Robert Klemme
12/9/2007 11:14:00 AM
On 09.12.2007 02:58, Junkone wrote:
> Hello
> I get this mesg whenever an i interrupt a Ruby program. How do i
> determine what these threads are e:/ruby/lib/ruby/1.8/date/format.rb:
> 959:in `_parse': Interrupt
> from e:/ruby/lib/ruby/1.8/time.rb:240:in `parse'
> from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
> 236:in `pr
> intPictures'
> from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
> 235:in `ea
> ch'
> from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
> 235:in `pr
> intPictures'
> from E:/TradingTools/torontotrader/app/models/picture.rb:24:in
> `importPi
> cture'
> from importtrade.rb:228:in `unitTestPrinting'
> from importtrade.rb:248
> Error in my_thread_global_end(): 5 threads didn't exit
If your program is to handle interrupts gracefully, I'd set up a signal
handler for SIGINT and use that for proper shutdown or whatever you want
to do.
Kind regards
robert