From 22cc3842a0969899ce50b3686884248e2bdbe93c Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sat, 25 Oct 2014 11:32:07 +0200 Subject: add some useful error messages --- zb-pull | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zb-pull') diff --git a/zb-pull b/zb-pull index ceb9906..8dc37e5 100755 --- a/zb-pull +++ b/zb-pull @@ -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. -- cgit v1.2.3