Commit 64af482e authored by S. Zeid's avatar S. Zeid

[cli/engine/commands/shell] treat broken pipes like EOFError's

parent 250456c1
......@@ -32,6 +32,7 @@ from __future__ import with_statement
import argparse
import array
import errno
import math
import plistlib
import re
......@@ -265,6 +266,9 @@ class ShellCommand(Command):
except StopIteration:
except Exception, exc:
if isinstance(exc, IOError) and exc.errno == errno.EPIPE:
raise StopIteration(0)
tb = traceback.format_exc()
self.cmd(output.OutputCommand).run([self.argv[0], "127", "", "", tb])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment