*** empty log message ***

svn path=/trunk/boinc/; revision=3657
This commit is contained in:
Rom Walton 2004-06-18 02:08:27 +00:00
parent ade9d72e87
commit 46b18ebbce
2 changed files with 15 additions and 1 deletions

View File

@ -13922,3 +13922,9 @@ Daniel 17 June 2004
hostinfo_unix.C hostinfo_unix.C
hostinfo_network.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

View File

@ -120,7 +120,15 @@ int get_local_network_info(
retval = try_ping(buf, domain_name, domlen, ip_addr, iplen); retval = try_ping(buf, domain_name, domlen, ip_addr, iplen);
if (retval) { if (retval) {
sprintf(buf, "ping -c 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME); 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; return 0;
} }