~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/server.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-03-26 05:25:32 UTC
  • mfrom: (5011.3.16 no_until_no_eintr)
  • Revision ID: pqm@pqm.ubuntu.com-20100326052532-9c9bbs1f7hmfr1j4
(andrew) Either correctly handle EINTR or don't handle it at all.
        (#496813)

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
                        if e.args[0] != errno.EBADF:
139
139
                            trace.warning("listening socket error: %s", e)
140
140
                    else:
 
141
                        if self._should_terminate:
 
142
                            break
141
143
                        self.serve_conn(conn, thread_name_suffix)
142
144
            except KeyboardInterrupt:
143
145
                # dont log when CTRL-C'd.