Browse Source

still had bus error :(

master
Felix von Leitner 17 years ago
parent
commit
23e8812905
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      io/iob_prefetch.c

+ 1
- 0
io/iob_prefetch.c View File

@ -13,6 +13,7 @@ void iob_prefetch(io_batch* b,uint64 bytes) {
if (e->type==FROMFILE) {
char* c,* d;
uint64 before=bytes;
if (e->n<bytes) bytes=e->n;
if (e->n>=1000000) {
long l=e->offset&4095;
d=c=mmap(0,bytes,PROT_READ,MAP_SHARED,e->fd,(e->offset|4095)+1);


Loading…
Cancel
Save