Rev 2778: Always ignore EPIPE, EINVAL when flushing stdout/stderr at exit. in http://sourcefrog.net/bzr/130574-epipe
Martin Pool
mbp at sourcefrog.net
Mon Sep 3 03:51:51 BST 2007
At http://sourcefrog.net/bzr/130574-epipe
------------------------------------------------------------
revno: 2778
revision-id: mbp at sourcefrog.net-20070903025150-42wzybekw9815zbs
parent: pqm at pqm.ubuntu.com-20070902233606-wb062d366w5c83uc
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: 130574-epipe
timestamp: Mon 2007-09-03 12:51:50 +1000
message:
Always ignore EPIPE, EINVAL when flushing stdout/stderr at exit.
Avoids error message when quitting log|less
modified:
bzr bzr.py-20050313053754-5485f144c7006fa6
=== modified file 'bzr'
--- a/bzr 2007-08-17 05:16:14 +0000
+++ b/bzr 2007-09-03 02:51:50 +0000
@@ -117,7 +117,9 @@
sys.stderr.flush()
except IOError, e:
import errno
- if sys.platform != 'win32' or e.errno != errno.EINVAL:
+ if e.errno in [errno.EINVAL, errno.EPIPE]:
+ pass
+ else:
raise
if bzrlib.trace._trace_file:
# this is also _bzr_log
More information about the bazaar-commits
mailing list