1 Nov 2009 12:18
Re: Updating load-path cache based on modification times probably a bad idea (was: Race condition between Octave 3.2.3 and unlink())
Thomas Weber <thomas.weber.mail <at> gmail.com>
2009-11-01 11:18:28 GMT
2009-11-01 11:18:28 GMT
On Thu, Oct 22, 2009 at 11:30:43AM -0400, John W. Eaton wrote: > On 22-Oct-2009, S,Aibastien Villemot wrote: > > | Le mercredi 21 octobre 2009 ,b` 10:01 -0400, John W. Eaton a ,bicrit : > | > OK, this seems better than forcing all of the directories in the load > | > path to be read again. So how about the following change? It seems > | > to work for me. > | > > | > http://hg.savannah.gnu.org/hgweb/octave/rev/d6b2b708b6b0 > | > | Applied on Octave 3.2.3, this patch solves the problem, in particular > | with Dynare. > > The patch modifies the interfaces of some classes, so I'm not sure > whether it is OK for a future 3.2.x release. I'm trying to get a solution for this on 3.2, but I have a question: In src/load-path.cc, the method load_path::dir_info::update() has an if (is_relative) part, in which the cache of already visited directories is checked. Why is this check only done for relative directories? Thomas
RSS Feed