So, what should we do about this? Revert to non-atomic replacements, use a fixed filename (pkgcache.bin.tmp, brings a race condition), or add a signal handler that cleans up those files on SIGINT -- which I assume is the reason there are so many files, as we rename the temporaries to the final name if the code is not interrupted.
So, what should we do about this? Revert to non-atomic replacements, use a fixed filename (pkgcache.bin.tmp, brings a race condition), or add a signal handler that cleans up those files on SIGINT -- which I assume is the reason there are so many files, as we rename the temporaries to the final name if the code is not interrupted.