]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Fixed termination of remote ping
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 18 Jun 2009 15:48:12 +0000 (17:48 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 18 Jun 2009 15:48:12 +0000 (17:48 +0200)
If the ping is executed with -q, it was not terminated upon killing ssh

tests/ethflood.sh
tests/ethflood64k.sh

index e2c1edd5a1da3b3777cc5c7b069b8a0378c034a4..c25d44773bd29f5a5405f5bfac6198ee8eeb269a 100755 (executable)
@@ -3,7 +3,7 @@
 . _lib.sh
 
 t() {
-    ssh root@${SSH_CONNECTION%% *} 'ping -qf "${SSH_CONNECTION%% *}"' &
+    ssh root@${SSH_CONNECTION%% *} 'ping -f "${SSH_CONNECTION%% *}"' &
     PID_PING=$!
     boost_irq_prio
     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
index 97020930a02b90842798a68ac64c514b49ab4231..aa325814cb64a6a4f1f3fc7e15762998a83d61af 100755 (executable)
@@ -3,7 +3,7 @@
 . _lib.sh
 
 t() {
-    ssh root@${SSH_CONNECTION%% *} 'ping -qfs 64000 "${SSH_CONNECTION%% *}"' &
+    ssh root@${SSH_CONNECTION%% *} 'ping -fs 64000 ${SSH_CONNECTION%% *}' &
     PID_PING=$!
     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000