Win32 KeyboardInterrupt

Chris Withers chrisw at nipltd.com
Tue Mar 7 09:28:41 EST 2000


I actually ended up just setting up a 'command' processed by the socket.accept()
which raised the KeyboardInterrupt.

Klunky I know, but it saved re-writing all the socket code ;-)

Chris

Adrian Eyre wrote:
> 
> > Turns out the worker class was blocking on a socket.accept(). As soon as I
> > telnetted to the listening port, the worker shut down...
> >
> > Any way I can make socket.accept() not do this?
> 
> See the 'select' module for non-blocking IO.
> 
> -----------------------------------------------------------------
> Adrian Eyre <a.eyre at optichrome.com> - http://www.optichrome.com




More information about the Python-list mailing list