[Twisted-Python] handling CTRL-C

Fabrizio Mancini mr.file at gmail.com
Thu Apr 30 08:44:08 EDT 2009


Hi,
i know twisted already manage CTRL-C keystroke, but i'd like to add some
other action when CTRL-C is pressed.
I've implemented a perspective broker server, which have a DeferredQueue and
a lot of elements in it.
I'd like to write to a file all those elements before the program shuts
down.
Is there a way to handle this kind of situation?
Thanks in advance
Fabrizio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090430/d4ffb865/attachment.htm 


More information about the Twisted-Python mailing list