diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2014-10-25 11:32:07 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2014-10-25 11:32:07 +0200 |
| commit | 22cc3842a0969899ce50b3686884248e2bdbe93c (patch) | |
| tree | 9d995696db4dd6fc012358c9c0f6c82064b81861 /zb-pull | |
| parent | 3ee8104210ce183379c04490cef00cca2fc1bddc (diff) | |
| download | zfs-backup-22cc3842a0969899ce50b3686884248e2bdbe93c.tar.gz zfs-backup-22cc3842a0969899ce50b3686884248e2bdbe93c.tar.bz2 | |
add some useful error messages
Diffstat (limited to 'zb-pull')
| -rwxr-xr-x | zb-pull | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -63,6 +63,8 @@ else ret=$? fi +[ "$ret" != 0 ] && echo "pulling to ${local_zfs} failed" >&2 + #in some cases and on some setups (Sun_SSH) when `zfs recv` fails, ssh ignores #the SIGPIPE and the connection hangs there forever, somehow. This fixes the #issue by killing all children that were possibly spawned by this shell. |
