Treat EPIPE as disconnect too; needed for fakessh.

wip-fakessh-exit-status
David Wilson 7 years ago
parent 9c4bf37cfc
commit effe4117e1

@ -134,7 +134,7 @@ def io_op(func, *args):
return func(*args), False return func(*args), False
except OSError, e: except OSError, e:
IOLOG.debug('io_op(%r) -> OSError: %s', func, e) IOLOG.debug('io_op(%r) -> OSError: %s', func, e)
if e.errno not in (errno.EIO, errno.ECONNRESET): if e.errno not in (errno.EIO, errno.ECONNRESET, errno.EPIPE):
raise raise
return None, True return None, True

Loading…
Cancel
Save