Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2021-12-02 20:02:26 +02:00
parent db0ac6ded6
commit 0ea3e4a27b

View File

@ -867,7 +867,7 @@ procstat_getfiles_sysctl(struct procstat *procstat, struct kinfo_proc *kp,
assert(kp);
if (kp->ki_fd == NULL)
return (NULL);
switch(procstat->type) {
switch (procstat->type) {
case PROCSTAT_SYSCTL:
files = kinfo_getfile(kp->ki_pid, &cnt);
break;