summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-03-27 18:23:45 +0000
committerngie <ngie@FreeBSD.org>2017-03-27 18:23:45 +0000
commit67820bc56e251d0808dc9e71c222fad5dc3047ce (patch)
tree5eec1ba6d76215ee915bd2c68bad7e3065b11f95 /lib
parenteee88abf2deebadd929be7a5a8b01e1001e06195 (diff)
downloadFreeBSD-src-67820bc56e251d0808dc9e71c222fad5dc3047ce.zip
FreeBSD-src-67820bc56e251d0808dc9e71c222fad5dc3047ce.tar.gz
MFC r315595,r315603:
r315595: Remove a commented out line before kvm_getprocs(3) The commented out return value for kvm_getprocs(3) was misleading -- the uncommented line is correct. No content change r315603: kvm_close(3): return `error` instead of blindly returning `0` `error` is the accumulated error from previous close(2) calls. This bug has been present since the libcall's import from 4.4BSD Lite (r1573). Noticed by: vangyzen (D10022) Relnotes: yes
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm.c2
-rw-r--r--lib/libkvm/kvm_getprocs.31
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 75abcd2..d5a33aa 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -280,7 +280,7 @@ kvm_close(kvm_t *kd)
free((void *)kd->argv);
free((void *)kd);
- return (0);
+ return (error);
}
/*
diff --git a/lib/libkvm/kvm_getprocs.3 b/lib/libkvm/kvm_getprocs.3
index 013da08..eb2af98 100644
--- a/lib/libkvm/kvm_getprocs.3
+++ b/lib/libkvm/kvm_getprocs.3
@@ -47,7 +47,6 @@
.In sys/param.h
.In sys/sysctl.h
.In sys/user.h
-.\" .Fa kvm_t *kd
.Ft struct kinfo_proc *
.Fn kvm_getprocs "kvm_t *kd" "int op" "int arg" "int *cnt"
.Ft char **
OpenPOWER on IntegriCloud