From: oetiker Date: Fri, 5 Dec 2008 15:23:45 +0000 (+0000) Subject: deleted a bit much from rrd_open ... merged back in X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b8567397ca7549dae454524568c0b199ec41b991;p=rrdtool-all.git deleted a bit much from rrd_open ... merged back in git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1697 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c index 5a908daa..d2ec5497 100644 --- a/program/src/rrd_open.c +++ b/program/src/rrd_open.c @@ -174,6 +174,10 @@ rrd_file_t *rrd_open( } else { if (rdwr & RRD_READWRITE) { flags |= O_RDWR; +#ifdef HAVE_MMAP + rrd_simple_file->mm_flags = MAP_SHARED; + rrd_simple_file->mm_prot |= PROT_WRITE; +#endif } if (rdwr & RRD_CREAT) { flags |= (O_CREAT | O_TRUNC);