mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
When collecting kernel stacks for a target process, if the process
adds a thread between the two calls to sysctl, ignore the additional
threads. Previously, procstat would print only a useless error
message. Now, it prints a consistent snapshot of the stacks.
We know that snapshot is already stale, but it could still be stale
even with a more complex fix to reallocate and retry, so such a fix
is hardly worth the effort.
Reported by: Daniel.Mitchell@emc.com
MFC after: 1 week
Sponsored by: Dell EMC Isilon
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| zfs | ||
| cd9660.c | ||
| common_kvm.c | ||
| common_kvm.h | ||
| core.c | ||
| core.h | ||
| libprocstat.3 | ||
| libprocstat.c | ||
| libprocstat.h | ||
| libprocstat_compat.c | ||
| libprocstat_internal.h | ||
| Makefile | ||
| Makefile.depend | ||
| msdosfs.c | ||
| smbfs.c | ||
| Symbol.map | ||
| udf.c | ||
| zfs.c | ||
| zfs_defs.c | ||
| zfs_defs.h | ||