[SIGAR-126] /dev/kmem not usable in aix 6
This commit is contained in:
parent
d19ab5ae30
commit
4867aeb235
|
@ -164,8 +164,9 @@ int sigar_os_open(sigar_t **sigar)
|
|||
|
||||
if (kmem > 0) {
|
||||
if ((status = get_koffsets(*sigar)) != SIGAR_OK) {
|
||||
free(*sigar);
|
||||
return status;
|
||||
/* libperfstat only mode (aix 6) */
|
||||
close((*sigar)->kmem);
|
||||
(*sigar)->kmem = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue