ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/process_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/process_stats.c (file contents):
Revision 1.31 by tdb, Sat Apr 3 23:02:03 2004 UTC vs.
Revision 1.32 by tdb, Sun Apr 4 11:02:30 2004 UTC

# Line 370 | Line 370 | process_stat_t *get_process_stats() {
370  
371          ps_size = get_proc_snapshot(&ps);
372  
373 +        if(ps_size == NULL) {
374 +                return NULL;
375 +        }
376 +
377          for(x = 0; x < ps_size; x++) {
378                  switch (ps->state) {
379                  /* currently no mapping for UNKNOWN in process_stat_t */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines