diff options
author | David Kalnischkies <david@kalnischkies.de> | 2017-01-19 02:13:54 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2017-01-19 02:13:54 +0100 |
commit | 06606f073210fe3902fe92d5ff77fa1ab621b972 (patch) | |
tree | b4c83e1e11f1558ac803ad5808f0520237020ea9 /test/integration/test-apt-cli-search | |
parent | 0d9081598afa051409b03dbdbe5025cd7ce59ba4 (diff) |
avoid validate/delete/load race in cache generation
Keeping the Fd of the cache file we have validated around to later load
it into the mmap ensures not only that we load the same file (which
wouldn't really be a problem in practice), but that this file also still
exists and wasn't deleted e.g. by a 'apt clean' call run in parallel.
Diffstat (limited to 'test/integration/test-apt-cli-search')
0 files changed, 0 insertions, 0 deletions