mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167367
@ -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 New Issue
Block a user