On Tue, 02 Mar 2010 10:09:30 +0100 Sebastian Dransfeld
<sebas...@tango.flipp.net> said:

> Gustavo Sverzut Barbieri wrote:
> > On Mon, Mar 1, 2010 at 3:42 PM, Enlightenment SVN
> > <no-re...@enlightenment.org> wrote:
> >> Log:
> >>  truncate old cache so we don't read cached values
> >> Author:       englebass
> >> Date:         2010-03-01 10:42:24 -0800 (Mon, 01 Mar 2010)
> >> New Revision: 46727
> >>
> >> Modified:
> >>  trunk/efreet/src/bin/efreet_desktop_cache_create.c
> >>
> >> Modified: trunk/efreet/src/bin/efreet_desktop_cache_create.c
> >> ===================================================================
> >> --- trunk/efreet/src/bin/efreet_desktop_cache_create.c  2010-03-01
> >> 18:16:32 UTC (rev 46726) +++
> >> trunk/efreet/src/bin/efreet_desktop_cache_create.c  2010-03-01 18:42:24
> >> UTC (rev 46727) @@ -191,6 +191,10 @@ goto efreet_error;
> >>     }
> >>
> >> +    /* truncate old cache so that we don't read cached values */
> >> +    if (truncate(efreet_desktop_cache_file(), 0) < 0) goto efreet_error;
> >> +    if (truncate(efreet_util_cache_file(), 0) < 0) goto efreet_error;
> > 
> > are you sure?! truncate will cause SIGBUS on the mmap()ed processes :-/
> > 
> 
> Not sure at all. Will fix.
cache should be a new file existing apps are not using yet - then renamed()
across when ready. existing one people have mmaped should just be mmaped and
never changed until a new one is prepared... :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to