mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Adjust the show_self code (the test got inadvertantly reversed a couple of
revisions ago) Submitted by: Alex Vasylenko <lxv@omut.org>
This commit is contained in:
parent
f257b7a54b
commit
9b30d69710
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132024
@ -528,7 +528,7 @@ get_process_info(struct system_info *si, struct process_select *sel,
|
||||
|
||||
/* set up flags which define what we are going to select */
|
||||
show_idle = sel->idle;
|
||||
show_self = sel->self;
|
||||
show_self = sel->self == -1;
|
||||
show_system = sel->system;
|
||||
show_uid = sel->uid != -1;
|
||||
show_command = sel->command != NULL;
|
||||
@ -544,8 +544,8 @@ get_process_info(struct system_info *si, struct process_select *sel,
|
||||
for (pp = pbase, i = 0; i < nproc; pp++, i++) {
|
||||
|
||||
if (pp->ki_stat == 0)
|
||||
/* not in use */
|
||||
continue;
|
||||
/* not in use */
|
||||
continue;
|
||||
|
||||
if (!show_self && pp->ki_pid == sel->self)
|
||||
/* skip self */
|
||||
|
Loading…
Reference in New Issue
Block a user