Twisted's default reactor on Windows shuts down when receiving a SIGBREAK (a Windows specific signal) (see twisted.internet.{base,posixbase}.py), probably so that you can hit CTRL-BREAK on a twisted app in a Windows console to shut the app down. Cf. also http://windowssdk.msdn.microsoft.com/en-us/library/ms682541.aspx So AFAIK you or someone else probably just hit ^C/^BREAK, but maybe there are other ways to raise SIGBREAK... On Tue, 2006-09-26 at 17:32 -0700, Jacob Gabrielson wrote:
Hi,
Has anyone run into a problem where their Twisted application gets a SIGBREAK and shuts down, on Windows? I have a simple application using the ReconnectingClientFactory, running as a service (via srvany.exe), that occasionally dies with a few messages:
2006/09/24 16:46 Pacific Daylight Time [-] Received SIGBREAK, shutting down. 2006/09/24 16:46 Pacific Daylight Time [AgentProtocol,client] <twisted.internet.tcp.Connector instance at 0x00A1B468> will retry in 2 seconds 2006/09/24 16:46 Pacific Daylight Time [AgentProtocol,client] Stopping factory <twisted.internet.protocol.ReconnectingClientFactory instance at 0x00A10D28> 2006/09/24 16:46 Pacific Daylight Time [-] Main loop terminated.
There's not a lot to go on, but I'm wondering if this is something anyone else has run into on Windows. I'm not really sure how a SIGBREAK could get generated there in the first place.
Thanks,
-- Jacob
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python