[netperf-dev] netperf2 commit notice r259 - trunk/src
raj at netperf.org
raj at netperf.org
Wed Mar 12 17:40:08 PDT 2008
Author: raj
Date: 2008-03-12 17:40:07 -0700 (Wed, 12 Mar 2008)
New Revision: 259
Modified:
trunk/src/netsys_solaris.c
Log:
fallback to sysinfo when smbios_open returns a null handle
Modified: trunk/src/netsys_solaris.c
===================================================================
--- trunk/src/netsys_solaris.c 2008-03-12 22:56:13 UTC (rev 258)
+++ trunk/src/netsys_solaris.c 2008-03-13 00:40:07 UTC (rev 259)
@@ -117,6 +117,12 @@
who got me started. feel free to make yourself known as you see fit :)
rick jones 2008-03-12 */
smbios_handle = smbios_open(NULL,SMB_VERSION,0,&error);
+ if (NULL == smbios_handle) {
+ /* fall-back on sysinfo for the system model info, we don't really
+ care why we didn't get a handle, just that we didn't get one */
+ find_system_model_sysinfo(system_model);
+ return;
+ }
ret = smbios_info_common(smbios_handle,256,&info);
if (0 == ret)
*system_model = strdup(info.smbi_product);
More information about the netperf-dev
mailing list