Re: [Twisted-Python] redefine signal handlers

2009-02-04 Thread Gabriel Rossetti
Jean-Paul Calderone wrote: On Wed, 4 Feb 2009 10:32:19 +, Reza Lotun wrote: Hi Gabriel, On Wed, Feb 4, 2009 at 10:15 AM, Gabriel Rossetti wrote: Hello everyone, I would like to run some cleanup code when my Twisted app receives a signal (SIGINT/SIGBREAK/SIGTERM). I saw that "_SignalR

Re: [Twisted-Python] redefine signal handlers

2009-02-04 Thread Jean-Paul Calderone
On Wed, 4 Feb 2009 10:32:19 +, Reza Lotun wrote: Hi Gabriel, On Wed, Feb 4, 2009 at 10:15 AM, Gabriel Rossetti wrote: Hello everyone, I would like to run some cleanup code when my Twisted app receives a signal (SIGINT/SIGBREAK/SIGTERM). I saw that "_SignalReactorMixin" sets the handlers

Re: [Twisted-Python] redefine signal handlers

2009-02-04 Thread Reza Lotun
Hi Gabriel, On Wed, Feb 4, 2009 at 10:15 AM, Gabriel Rossetti wrote: > Hello everyone, > > I would like to run some cleanup code when my Twisted app receives a signal > (SIGINT/SIGBREAK/SIGTERM). > > I saw that "_SignalReactorMixin" sets the handlers and that "ReactorBase" > defines the default h