From ade9d72e8724f271039997d98ca2275dc7df8474 Mon Sep 17 00:00:00 2001 From: Daniel Hsu Date: Thu, 17 Jun 2004 23:27:35 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3656 --- checkin_notes | 4 +++- client/hostinfo_network.C | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index ccc364b655..a19194a4e7 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/hostinfo_network.C b/client/hostinfo_network.C index 1cfafdd1e0..e1f8162e8a 100644 --- a/client/hostinfo_network.C +++ b/client/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;