On 03:59 pm, [email protected] wrote:
>On Fri, Feb 11, 2011 at 10:01 AM, <[email protected]> wrote:
>>On Python 2.5 and earlier you won't be able to get Twisted's SIGCHLD
>>handler using signal.getsignal.
>
>We're also moving to python 2.6 (the change is really Debian 5 to 
>Debian 6).
>Should it would work in 2.6?

I think so.
>
>>What sort of things do your signal handlers do?
>
>IIRC, the main thing is to shut down the web server (cherrypy) we're 
>running
>in parallel with twisted.  We also have some disk-caching for stateful
>signals which needs to ensure the cache file is up-to-date.

For shutdown-type things, reactor.addSystemEventTrigger(phase, 
'shutdown', f) might be better than getting into signal handlers (where 
phase is 'before', 'during', or 'after').

Jean-Paul

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to