Closed ManuelAmadorAditazz closed 11 years ago
the send receive pipeline needs this to handle SIGPIPE
output=dmesg | grep hda
dmesg | grep hda
p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. output = p2.communicate()[0]
Fixed in 07d1e32ce1ff5da9793f52588eee334c3ed43de6
the send receive pipeline needs this to handle SIGPIPE
output=
dmesg | grep hda
becomes
p1 = Popen(["dmesg"], stdout=PIPE) p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits. output = p2.communicate()[0]