Changeset 2450
- Timestamp:
- 01/10/07 20:27:56 (2 years ago)
- Files:
-
- trunk/src/vserver-stat.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vserver-stat.c
r2449 r2450 614 614 if (pagesize==0x42) initPageSize(); 615 615 616 my_pid = getpid();617 618 if (!switchToWatchXid(&errptr)) {619 perror(errptr);620 exit(1);621 }622 623 if (access("/proc/uptime",R_OK)==-1 && errno==ENOENT)624 WRITE_MSG(2,625 "WARNING: can not access /proc/uptime. Usually, this is caused by\n"626 " procfs-security. Please read the FAQ for more details\n"627 " http://linux-vserver.org/Proc-Security\n");628 629 616 Vector_init(&xid_data, sizeof(struct XidData)); 630 617 … … 642 629 } 643 630 else { 631 my_pid = getpid(); 632 633 if (!switchToWatchXid(&errptr)) { 634 perror(errptr); 635 exit(1); 636 } 637 638 if (access("/proc/uptime",R_OK)==-1 && errno==ENOENT) 639 WRITE_MSG(2, 640 "WARNING: can not access /proc/uptime. Usually, this is caused by\n" 641 " procfs-security. Please read the FAQ for more details\n" 642 " http://linux-vserver.org/Proc-Security\n"); 643 644 644 Echdir(PROC_DIR_NAME); 645 645 proc_dir = Eopendir(".");
