enable PROC_FILLSTAT

This commit is contained in:
albert 2002-12-08 18:51:56 +00:00
parent 732a595fa1
commit ab8b5f314d

View File

@ -404,9 +404,11 @@ next_proc: /* get next PID for consideration */
p->secsid = secsid;
#endif
if ((file2str(path, "stat", sbuf, sizeof sbuf)) == -1)
goto next_proc; /* error reading /proc/#/stat */
stat2proc(sbuf, p); /* parse /proc/#/stat */
if (flags & PROC_FILLSTAT) { /* read, parse /proc/#/stat */
if ((file2str(path, "stat", sbuf, sizeof sbuf)) == -1)
goto next_proc; /* error reading /proc/#/stat */
stat2proc(sbuf, p); /* parse /proc/#/stat */
}
if (flags & PROC_FILLMEM) { /* read, parse /proc/#/statm */
if ((file2str(path, "statm", sbuf, sizeof sbuf)) != -1 )