# 5 threads didn't exit

**URL:** <https://www.ruby-forum.com/t/5-threads-didnt-exit/122542>\
**Category:** Ruby\
**Created:** [December 9, 2007, 3:00am UTC](https://www.ruby-forum.com/t/5-threads-didnt-exit/122542 "2007-12-09T03:00:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 9, 2007, 3:00am UTC](https://www.ruby-forum.com/t/5-threads-didnt-exit/122542/1 "2007-12-09T03:00:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 9, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/5-threads-didnt-exit/122542/2 "2007-12-09T12:17:40Z")

</div>

On 09.12.2007 02:58, Junkone wrote:

> 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
