From 9dedbf110e768d02d1b8ee11788716aac826ddc8 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Sat, 29 Mar 2003 12:36:35 -0500 Subject: [svn-r6529] Purpose: Improvement Description: Added a 5 seconds timeout to the PING command so that it can detect host not online quicker. Platforms tested: The three platforms tests do not cover this command. Test it in eirene where it is usually run. Misc. update: --- bin/runtest | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/runtest b/bin/runtest index 76e7262..12985b7 100755 --- a/bin/runtest +++ b/bin/runtest @@ -156,8 +156,8 @@ CHECK_RSH() # Test "ping -c ..." style first because some '-c' machines treat # the command 'ping localhost 3' means to ping host '3'. if [ -z "$PING" ]; then - if ping -c 3 localhost >/dev/null 2>&1; then - PING='ping -c 3' + if ping -c 3 -w 5 localhost >/dev/null 2>&1; then + PING='ping -c 3 -w 5' PINGCOUNT= elif ping localhost 3 >/dev/null 2>&1; then PING=ping -- cgit v0.12