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.2 by tdb, Fri Feb 28 22:59:35 2003 UTC vs.
Revision 1.3 by pajs, Sat Mar 1 02:12:59 2003 UTC

# Line 60 | Line 60 | process_stat_t *get_process_stats(){
60                  if(atoi(dir_entry->d_name) == 0) continue;
61                  snprintf(filename, MAX_FILE_LENGTH, "/proc/%s/psinfo", dir_entry->d_name);
62  
63                printf("Filename : %s\n", filename);
63                  if((f=fopen(filename, "r"))==NULL){
64                          /* Open failed.. Process since vanished, or the path was too long.
65                           * Ah well, move onwards to the next one */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines