top: ensure necessary proc_t support if '-U' filtering
While the effective user id would always be present in each proc_t, thus supporting 'u' filtering, other user ids would only be present if /proc/$$/status was read. This commit just puts the 'master' branch top on a par with the 'newlib' branch when user filtering with 'U'. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
4b44aebd80
commit
0998225651
@ -1918,6 +1918,8 @@ static void build_headers (void) {
|
||||
f = w->rc.sortindx;
|
||||
Frames_libflags |= Fieldstab[f].lflg;
|
||||
if (EU_CMD == f && CHKw(w, Show_CMDLIN)) Frames_libflags |= L_CMDLINE;
|
||||
// for 'U' filtering we need the other user ids too
|
||||
if (w->usrseltyp == 'U') Frames_libflags |= L_status;
|
||||
} // end: VIZISw(w)
|
||||
|
||||
if (Rc.mode_altscr) w = w->next;
|
||||
|
Loading…
Reference in New Issue
Block a user