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

Comparing projects/libstatgrab/examples/process_snapshot.c (file contents):
Revision 1.5 by tdb, Sun Apr 4 22:52:40 2004 UTC vs.
Revision 1.6 by tdb, Sun Apr 4 23:57:33 2004 UTC

# Line 42 | Line 42 | int main(){
42  
43          ps_size = get_proc_snapshot(&ps);
44  
45 <        if(ps_size == 0){
45 >        if(ps_size < 0){
46                  fprintf(stderr, "Failed to get process snapshot\n");
47                  exit(1);
48          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines