aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMikolaj Golub <trociny@FreeBSD.org>2011-12-05 19:39:15 +0000
committerMikolaj Golub <trociny@FreeBSD.org>2011-12-05 19:39:15 +0000
commitcc43fe5b46e6f140cfe5df1e25cc46389d373fe9 (patch)
tree198fdca806c861ba624e727daef4c44b25a4cd13 /usr.bin
parentc65932be9d57ee04bcec8c580928fe1254c6c6b0 (diff)
downloadsrc-cc43fe5b46e6f140cfe5df1e25cc46389d373fe9.tar.gz
src-cc43fe5b46e6f140cfe5df1e25cc46389d373fe9.zip
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
Notes
Notes: svn path=/head/; revision=228289
Diffstat (limited to 'usr.bin')
-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 8a147c0ecae9..543738ce7f3c 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;
}