Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: autoloading from deleted wordcode digest files

Bart Schaefer wrote:

> ...
> You have it backwards.  Clint wants check_dump_file() to search for a
> function in the already-mapped files because load_dump_header() fails
> if it can't do an open().

Ahem.  Yes, that makes more sense.

Note that check_dump_file() does search mapped files, but only if
try_dump_file() could stat the file to compare st_ino and st_dev.

I think I actually considered saving only the filename in the funcdump
struct and compare that (for the equality test, we'd still need
something like that to find out which is the youngest file).

So, to answer Clint's question: with a bit of tweaking on the tests done
I think this would be fine (so that the current behaviour is kept as far
as possible -- only changing what happens when the digest file is
removed).  And, no, I can't see anything that would break -- I'm not
quite sure how the time-stamp comparisons should work with a deleted
file, though, but that seems solvable.


Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx

Messages sorted by: Reverse Date, Date, Thread, Author