mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[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:
This commit is contained in:
parent
fc295015d8
commit
9dedbf110e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user