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.1 by tdb, Sat Apr 3 16:55:38 2004 UTC vs.
Revision 1.2 by tdb, Sat Apr 3 21:02:10 2004 UTC

# Line 42 | Line 42 | int main(){
42  
43          ps_size = get_proc_snapshot(&ps);
44  
45 +        if(ps_size == NULL){
46 +                fprintf(stderr, "Failed to get process snapshot\n");
47 +                exit(1);
48 +        }
49 +
50          printf("%5s %5s %5s %5s %5s %5s %5s %6s %6s %9s %-10s %-4s %-8s %-20s %s\n",
51                  "pid", "ppid", "pgid", "uid", "euid", "gid", "egid", "size", "res", "time", "cpu", "nice", "state", "name", "title");
52  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines