change proc_env to return NOTIMPL if no /dev/kmem perms.

This commit is contained in:
Doug MacEachern 2005-02-16 18:01:21 +00:00
parent 2ee1013aad
commit 54b12212fa
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ int sigar_proc_env_get(sigar_t *sigar, sigar_pid_t pid,
int num;
if (!sigar->kmem) {
return SIGAR_EPERM_KMEM;
return SIGAR_ENOTIMPL;
}
pinfo = kvm_getprocs(sigar->kmem, KERN_PROC_PID, pid, &num);