Armin van Buuren 2006-06-27 03:07:09 +00:00 committed by Craig Small
parent fe82a3246a
commit 90b201f1f4
2 changed files with 3 additions and 3 deletions

View File

@ -1201,7 +1201,7 @@ void look_up_our_self(proc_t *p) {
char sbuf[1024];
if(file2str("/proc/self", "stat", sbuf, sizeof sbuf) == -1){
fprintf(stderr, "Error, do this: mount -t proc none /proc\n");
fprintf(stderr, "Error, do this: mount -t proc proc /proc\n");
_exit(47);
}
stat2proc(sbuf, p); // parse /proc/self/stat

View File

@ -30,8 +30,8 @@ long smp_num_cpus; /* number of CPUs */
#define BAD_OPEN_MESSAGE \
"Error: /proc must be mounted\n" \
" To mount /proc at boot you need an /etc/fstab line like:\n" \
" /proc /proc proc defaults\n" \
" In the meantime, run \"mount /proc /proc -t proc\"\n"
" proc /proc proc defaults\n" \
" In the meantime, run \"mount proc /proc -t proc\"\n"
#define STAT_FILE "/proc/stat"
static int stat_fd = -1;