minor fix - add a 2>&1 to get rid of the 'Exit request sent.' noise at the end when killing the ssh master

This commit is contained in:
Jim Salter 2015-09-18 12:14:54 -04:00
parent 257794c2f1
commit 3280856d6f
2 changed files with 3 additions and 2 deletions

View File

@ -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!

View File

@ -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;
}