diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 8c56a8f8..21f4915d 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -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);