From 3280856d6fa8a736d8e10d9893deb81c6ef6cc6e Mon Sep 17 00:00:00 2001 From: Jim Salter Date: Fri, 18 Sep 2015 12:14:54 -0400 Subject: [PATCH] minor fix - add a 2>&1 to get rid of the 'Exit request sent.' noise at the end when killing the ssh master --- CHANGELIST | 1 + syncoid | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELIST b/CHANGELIST index 0357c0e..ad3378c 100644 --- a/CHANGELIST +++ b/CHANGELIST @@ -1,4 +1,5 @@ 1.4.3 added SSH persistence to syncoid - using socket speeds up SSH overhead 300%! =) + one extra commit to get rid of the "Exit request sent." SSH noise at the end. 1.4.2 removed -r flag for zfs destroy of pruned snapshots in sanoid, which unintentionally caused same-name child snapshots to be deleted - thank you Lenz Weber! diff --git a/syncoid b/syncoid index 632acda..a0a3d20 100755 --- a/syncoid +++ b/syncoid @@ -70,11 +70,11 @@ if (! $args{'recursive'}) { # close SSH sockets for master connections as applicable if ($sourcehost ne '') { - open FH, "$sshcmd $sourcehost -O exit |"; + open FH, "$sshcmd $sourcehost -O exit 2>&1 |"; close FH; } if ($targethost ne '') { - open FH, "$sshcmd $targethost -O exit |"; + open FH, "$sshcmd $targethost -O exit 2>&1 |"; close FH; }