Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97259

Re: ConnectionError handling problem

From Laura Creighton <lac@openend.se>
Subject Re: ConnectionError handling problem
References <ff56fdf3-e40b-4ebf-8f4a-524f3ce61fbd@googlegroups.com> <20150930213059.GA6225@cskk.homeip.net>
Date 2015-09-30 23:56 +0200
Newsgroups comp.lang.python
Message-ID <mailman.279.1443650168.28679.python-list@python.org> (permalink)

Show all headers | View raw


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@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: ConnectionError handling problem Cameron Simpson <cs@zip.com.au> - 2015-09-25 09:25 +1000
  Re: ConnectionError handling problem shiva upreti <katewinslet626@gmail.com> - 2015-09-24 20:57 -0700
    Re: ConnectionError handling problem Cameron Simpson <cs@zip.com.au> - 2015-09-25 14:59 +1000
      Re: ConnectionError handling problem shiva upreti <katewinslet626@gmail.com> - 2015-09-24 22:46 -0700
        Re: ConnectionError handling problem Cameron Simpson <cs@zip.com.au> - 2015-09-25 17:24 +1000
          Re: ConnectionError handling problem shiva upreti <katewinslet626@gmail.com> - 2015-09-29 23:04 -0700
            Re: ConnectionError handling problem Cameron Simpson <cs@zip.com.au> - 2015-10-01 07:30 +1000
            Re: ConnectionError handling problem Laura Creighton <lac@openend.se> - 2015-09-30 23:56 +0200

csiph-web