# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |