Rudd-O / zfs-tools

ZFS synchronization and snapshotting tools
79 stars 41 forks source link

zreplicate hangs sometimes #3

Closed ManuelAmadorAditazz closed 11 years ago

ManuelAmadorAditazz commented 11 years ago

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]

Rudd-O commented 11 years ago

Fixed in 07d1e32ce1ff5da9793f52588eee334c3ed43de6