When running twisted programs in sage, the sigint handler seems to
cause problems;
[EMAIL PROTECTED]:~/Software/dsage/ > sage dsage_server.py
2007/01/20 17:01 -0700 [-] Log opened.
^C2007/01/20 17:01 -0700 [-] Unexpected error in main loop.
2007/01/20 17:01 -0700 [-] Unhandled Error
Traceback (most recent call last):
File "dsage_server.py", line 142, in <module>
main()
File "dsage_server.py", line 139, in main
reactor.run()
File "/Users/yi/Software/sage/local/lib/python2.5/site-
packages/twisted/internet/posixbase.py", line 220, in run
self.mainLoop()
--- <exception caught here> ---
File "/Users/yi/Software/sage/local/lib/python2.5/site-
packages/twisted/internet/posixbase.py", line 231, in mainLoop
self.doIteration(t)
File "/Users/yi/Software/sage/local/lib/python2.5/site-
packages/twisted/internet/selectreactor.py", line 97, in doSelect
[], timeout)
File "/Users/yi/Software/sage/local/lib/python2.5/site-
packages/sage/interfaces/get_sigs.py", line 8, in my_sigint
raise KeyboardInterrupt
exceptions.KeyboardInterrupt:
Both sage and twisted register sigint handlers, and sage wins
apparently. Any ideas how I should go about fixing this?
Yi
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---