[Twisted] potential bug in the reactor's handling events loop

  • Thread starter Andy Leszczynski
  • Start date
A

Andy Leszczynski

Python 2.3, one of the latest Twisted version:

I noted that under Linux there is not way to Control-C the reactor loop.
After digging a little I found that following change helpes:

[root@d1501-0a10109c internet]# diff base.py{,.ori}
302d301
< print "1",sysEvtTriggers
305d303
< print "2",`self._eventTriggers`
307,308c305
< for callable, args, kw in sysEvtTriggers[1]:
< print "3"
---
>
> for callable, args, kw in sysEvtTriggers[0]:
317d313
< print "4"
320d315
< print "5",`eventType`


Of course it is quick work around, not a permanent fix, but it really helps.


Please advice, Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top