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

Discussion in 'Python' started by Andy Leszczynski, Mar 1, 2005.

  1. 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
     
    Andy Leszczynski, Mar 1, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert May

    Potential ASP.NET bug

    Robert May, Oct 16, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    524
    Robert May
    Oct 16, 2003
  2. Replies:
    1
    Views:
    628
    Bjoern Schliessmann
    Dec 3, 2006
  3. =?Utf-8?B?QXZp?=
    Replies:
    1
    Views:
    632
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    May 21, 2007
  4. Gabriel
    Replies:
    1
    Views:
    971
    Tim Harig
    May 11, 2009
  5. jacopo
    Replies:
    5
    Views:
    1,047
  6. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    675
    Chris
    Aug 30, 2005
  7. Todd S.
    Replies:
    3
    Views:
    299
    Matthew Moss
    Jan 26, 2006
  8. Isaac Won
    Replies:
    9
    Views:
    798
    Ulrich Eckhardt
    Mar 4, 2013
Loading...