From 85356b61d36413094ff3e179530770603e4f78e6 Mon Sep 17 00:00:00 2001 From: trociny Date: Mon, 5 Dec 2011 19:39:15 +0000 Subject: Don't output a warning if kern.proc.auxv sysctl has returned EPERM. After r228288 this is rather a normal situation. MFC after: 1 week --- usr.bin/procstat/procstat_auxv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/procstat') diff --git a/usr.bin/procstat/procstat_auxv.c b/usr.bin/procstat/procstat_auxv.c index 8a147c0..543738c 100644 --- a/usr.bin/procstat/procstat_auxv.c +++ b/usr.bin/procstat/procstat_auxv.c @@ -66,7 +66,7 @@ procstat_auxv(struct kinfo_proc *kipp) name[3] = kipp->ki_pid; len = sizeof(auxv) * sizeof(*auxv); error = sysctl(name, 4, auxv, &len, NULL, 0); - if (error < 0 && errno != ESRCH) { + if (error < 0 && errno != ESRCH && errno != EPERM) { warn("sysctl: kern.proc.auxv: %d: %d", kipp->ki_pid, errno); return; } -- cgit v1.1