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=0e12cdcd2ec93e5827b7e227d288e6826dff7b76;p=rrdtool.git deleted a bit much from rrd_open ... merged back in git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1697 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_open.c b/src/rrd_open.c index 5a908da..d2ec549 100644 --- a/src/rrd_open.c +++ b/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);