mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
KERN_PROC_ALL produces a kinfo_proc for each thread in a process, which
caused fstat to produce duplicated output for threaded processes. Instead use KERN_PROC_PROC to get just one kinfo_proc per process. MFC After: 2 weeks
This commit is contained in:
parent
3ff6d22988
commit
f9feee175b
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ main(int argc, char **argv)
|
|||
int arg, ch, what;
|
||||
|
||||
arg = 0;
|
||||
what = KERN_PROC_ALL;
|
||||
what = KERN_PROC_PROC;
|
||||
nlistf = memf = NULL;
|
||||
while ((ch = getopt(argc, argv, "fmnp:u:vN:M:")) != -1)
|
||||
switch((char)ch) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue