[SIGAR-126] /dev/kmem not usable in aix 6

This commit is contained in:
Doug MacEachern 2008-10-14 03:27:02 +00:00
parent d19ab5ae30
commit 4867aeb235
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}