mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3656
This commit is contained in:
parent
fe9912a0f3
commit
ade9d72e87
|
@ -13912,11 +13912,13 @@ David 17 June 2004
|
|||
sched_shmem.C,h
|
||||
|
||||
Daniel 17 June 2004
|
||||
- Determine utmp location at compile time
|
||||
- Determine utmp location at compile time so idle checking works on MacOSX
|
||||
- get_local_network_info(): Redirect ping stderr to /dev/null
|
||||
|
||||
config.h.in
|
||||
configure
|
||||
configure.ac
|
||||
client/
|
||||
hostinfo_unix.C
|
||||
hostinfo_network.C
|
||||
|
||||
|
|
|
@ -116,10 +116,10 @@ int get_local_network_info(
|
|||
int retval;
|
||||
|
||||
if (gethostname(hostname, 256)) return ERR_GETHOSTBYNAME;
|
||||
sprintf(buf, "ping -c 1 -w 1 %s > %s", hostname, TEMP_FILE_NAME);
|
||||
sprintf(buf, "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, "ping -c 1 %s > %s", 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);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue