summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2011-12-05 19:39:15 +0000
committertrociny <trociny@FreeBSD.org>2011-12-05 19:39:15 +0000
commit85356b61d36413094ff3e179530770603e4f78e6 (patch)
tree198fdca806c861ba624e727daef4c44b25a4cd13
parentb9b4d81b8d9e9676a68f79db430260df62029cc5 (diff)
downloadFreeBSD-src-85356b61d36413094ff3e179530770603e4f78e6.zip
FreeBSD-src-85356b61d36413094ff3e179530770603e4f78e6.tar.gz
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
-rw-r--r--usr.bin/procstat/procstat_auxv.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud