From 59eb92f4cefbc45a209a2c44dfa2f735e45340ce Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 15 Feb 2005 01:57:19 +0000 Subject: [PATCH] prevent perror() call if kvm_open fails --- 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 defe22ec..fc5fa34d 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -145,7 +145,7 @@ int sigar_os_open(sigar_t **sigar) #ifdef DARWIN (*sigar)->mach_port = mach_host_self(); #else - (*sigar)->kmem = kvm_open(NULL, NULL, NULL, O_RDONLY, "kvm_open"); + (*sigar)->kmem = kvm_open(NULL, NULL, NULL, O_RDONLY, NULL); if (stat("/proc/curproc", &sb) < 0) { (*sigar)->proc_mounted = 0; }