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

Comparing projects/libstatgrab/src/statgrab/statgrab.c (file contents):
Revision 1.11 by ats, Sun Oct 19 01:25:55 2003 UTC vs.
Revision 1.12 by ats, Mon Oct 20 22:18:21 2003 UTC

# Line 603 | Line 603 | int main(int argc, char **argv) {
603  
604          select_interesting(argc - optind, &argv[optind]);
605  
606 +        /* We don't care if statgrab_init fails, because we can just display
607 +           the statistics that can be read as non-root. */
608 +        statgrab_init();
609 + #ifdef ALLBSD
610 +        if (setegid(getgid()) != 0)
611 +                die("Failed to lose effective group");
612 + #endif
613 +
614          switch (repeat_mode) {
615          case REPEAT_NONE:
616                  get_stats();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines