check return of topoErr

This commit is contained in:
Hisham Muhammad 2014-04-21 19:17:46 -03:00
parent 30bafafb24
commit 3fbd1ef76d

View File

@ -224,6 +224,8 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
int topoErr = hwloc_topology_init(&this->topology);
if (topoErr == 0) {
topoErr = hwloc_topology_load(this->topology);
}
if (topoErr == 0) {
this->topologyOk = true;
}
#endif