From: ts Date: 2005-09-11T01:37:51+09:00 Subject: Re: Mmap crash when appending >>>>> "G" == Guillaume Marcais writes: G> It works! svg% diff -u mmap.c~ mmap.c --- mmap.c~ 2004-11-07 15:31:26.000000000 +0100 +++ mmap.c 2005-09-10 18:36:02.000000000 +0200 @@ -522,7 +522,7 @@ if (!init) t_mm->real = size; t_mm->pmode = pmode; t_mm->vscope = vscope; - t_mm->smode = smode; + t_mm->smode = smode & ~O_TRUNC; t_mm->path = (path)?ruby_strdup(path):(char *)-1; if (smode == O_RDONLY) { obj = rb_obj_freeze(obj); svg% Guy Decoux