From 54b12212fae7cc23c58d487c2347c0df0f138db5 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 16 Feb 2005 18:01:21 +0000 Subject: [PATCH] change proc_env to return NOTIMPL if no /dev/kmem perms. --- src/os/darwin/darwin_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);