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:
parent
257794c2f1
commit
3280856d6f
|
@ -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!
|
||||
|
||||
|
|
4
syncoid
4
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue