ConnectionError handling problem

Laura Creighton lac at openend.se
Wed Sep 30 17:56:02 EDT 2015


In a message of Thu, 01 Oct 2015 07:30:59 +1000, Cameron Simpson writes:
>Most likely the Ctrl-C interrupts whatever system call is hanging, causing it 
>to return (failed, probably with errno EINTR). And the python program resumes 
>because the OS system call has returned.
>
>Cheers,
>Cameron Simpson <cs at zip.com.au>

Shiva Upreti needs to post the current code, but last time I read it
the problem was that control-C is a KeyboardInterrupt, which the
program was catching, and then continuing the loop.

Laura




More information about the Python-list mailing list