Unmap microdesc cache before replacing it.

If we do a replace-then-munmap, windows will never actually rewrite
the microdesc cache.

Found by wanoskarnet; bugfix on 0.2.2.6-alpha.
This commit is contained in:
Nick Mathewson
2011-05-12 11:19:52 -04:00
parent b47f574c1e
commit bdff7e3299
2 changed files with 9 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor bugfixes
- Avoid a bug that would keep us from replacing a microdescriptor
cache on Windows. (We would try to replace the file while still
holding it open. That's fine on Unix, but Windows doesn't let us
do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.