##// END OF EJS Templates
Ignore EPIPE in pipefilter...
Alexis S. L. Carvalho -
r2096:f5ebe964 default
parent child Browse files
Show More
@@ -20,8 +20,12 b' def pipefilter(s, cmd):'
20 '''filter string S through command CMD, returning its output'''
20 '''filter string S through command CMD, returning its output'''
21 (pout, pin) = popen2.popen2(cmd, -1, 'b')
21 (pout, pin) = popen2.popen2(cmd, -1, 'b')
22 def writer():
22 def writer():
23 pin.write(s)
23 try:
24 pin.close()
24 pin.write(s)
25 pin.close()
26 except IOError, inst:
27 if inst.errno != errno.EPIPE:
28 raise
25
29
26 # we should use select instead on UNIX, but this will work on most
30 # we should use select instead on UNIX, but this will work on most
27 # systems, including Windows
31 # systems, including Windows
General Comments 0
You need to be logged in to leave comments. Login now