python: how to terminate a thread when main program ends

Posted by facha on Stack Overflow See other posts from Stack Overflow or by facha
Published on 2010-04-01T22:44:52Z Indexed on 2010/04/01 22:53 UTC
Read the original article Hit count: 346

Filed under:
|

Hi, everyone

If have a thread in infinite loop, is there a way to terminate it when main program ends (for example, when I press ctrl+C)?

© Stack Overflow or respective owner

Related posts about python

Related posts about beginner