On Wed, Aug 10, 2011 at 2:49 PM, Heungsub Lee <[email protected]> wrote: > > To solve this problem, I'd like to set threads as daemon. So that all > related threads are terminated when main loop is interrupted. Any idea on > this problem will be appreciated. > > Hi Heungsub,
Two options as far I as I can see: 1. Instead of having a blocking wait(), perhaps have it wait with a timeout? 2. Why don't you check out txAMQP, if you're doing amqp stuff - it has native integration into Twisted. http://pypi.python.org/pypi/txAMQP Keep in mind that if you set the thread as a daemon thread, the thread isn't actually "killed", there just isn't a join() called, so it gets claimed by the OS. This may be no different to what you want, but it's useful to keep it in mind. Reza -- Reza Lotun mobile: +44 (0)7521 310 763 email: [email protected] work: [email protected] @rlotun
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
