[Twisted-Python] SIGBREAK on windows

Thomas Jacob jacob at internet24.de
Wed Sep 27 04:32:24 EDT 2006

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

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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20060927/064462ff/attachment.pgp 

More information about the Twisted-Python mailing list