enable PROC_FILLSTAT
This commit is contained in:
parent
732a595fa1
commit
ab8b5f314d
@ -404,9 +404,11 @@ next_proc: /* get next PID for consideration */
|
|||||||
p->secsid = secsid;
|
p->secsid = secsid;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((file2str(path, "stat", sbuf, sizeof sbuf)) == -1)
|
if (flags & PROC_FILLSTAT) { /* read, parse /proc/#/stat */
|
||||||
goto next_proc; /* error reading /proc/#/stat */
|
if ((file2str(path, "stat", sbuf, sizeof sbuf)) == -1)
|
||||||
stat2proc(sbuf, p); /* parse /proc/#/stat */
|
goto next_proc; /* error reading /proc/#/stat */
|
||||||
|
stat2proc(sbuf, p); /* parse /proc/#/stat */
|
||||||
|
}
|
||||||
|
|
||||||
if (flags & PROC_FILLMEM) { /* read, parse /proc/#/statm */
|
if (flags & PROC_FILLMEM) { /* read, parse /proc/#/statm */
|
||||||
if ((file2str(path, "statm", sbuf, sizeof sbuf)) != -1 )
|
if ((file2str(path, "statm", sbuf, sizeof sbuf)) != -1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user