From: Michal Sojka Date: Fri, 10 Dec 2010 14:59:10 +0000 (+0100) Subject: run master ssh indefinitely X-Git-Tag: fix-allnoconfig~233^2~8 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/6feb4d52eea98f191e100a715234c8c0df621c5c run master ssh indefinitely --- diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index ae618fd..739333c 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -35,9 +35,7 @@ sshgw() { if [[ ! -S $socket ]] || ! ssh -x -a -S $socket root@192.168.2.3 true; then # Create master connection to speed up subsequenct command. - # The ssh is put into background and the connection is closed - # after 10 minutes) - ssh -f -M -S $socket root@192.168.2.3 sleep 600 > /dev/null 2>&1 + ssh -N -f -M -S $socket root@192.168.2.3 >/dev/null 2>&1 fi ssh -x -a -S $socket root@192.168.2.3 "$@" }