mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3657
This commit is contained in:
parent
ade9d72e87
commit
46b18ebbce
|
@ -13922,3 +13922,9 @@ Daniel 17 June 2004
|
|||
hostinfo_unix.C
|
||||
hostinfo_network.C
|
||||
|
||||
Rom 17 June 2004
|
||||
- Add an additional path to the list of pings to try.
|
||||
/usr/sbin
|
||||
|
||||
client/
|
||||
hostinfo_network.C
|
||||
|
|
|
@ -120,7 +120,15 @@ int get_local_network_info(
|
|||
retval = try_ping(buf, domain_name, domlen, ip_addr, iplen);
|
||||
if (retval) {
|
||||
sprintf(buf, "ping -c 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME);
|
||||
return try_ping(buf, domain_name, domlen, ip_addr, iplen);
|
||||
retval = try_ping(buf, domain_name, domlen, ip_addr, iplen);
|
||||
if (retval) {
|
||||
sprintf(buf, "/usr/sbin/ping -c 1 -w 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME);
|
||||
retval = try_ping(buf, domain_name, domlen, ip_addr, iplen);
|
||||
if (retval) {
|
||||
sprintf(buf, "/usr/sbin/ping -c 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME);
|
||||
return try_ping(buf, domain_name, domlen, ip_addr, iplen);
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue