r13714@catbus: nickm | 2007-07-12 12:08:35 -0400

Backport r10148: open cached-routers with FILE_SHARE_READ on win32.


svn:r10807
This commit is contained in:
Nick Mathewson 2007-07-12 16:17:23 +00:00
parent cd61565ad3
commit 25e312e1a3
3 changed files with 5 additions and 3 deletions

View File

@ -16,6 +16,8 @@ Changes in version 0.1.2.15 - 2007-0?-??
correctly. Previously, we were under-counting by 1.
o Minor bugfixes (misc)
- On Windows, we were preventing other processes from reading
cached-routers while Tor was running. (Reported by janbar)
- Backport miscellaneous cosmetic bugfixes.

View File

@ -1,5 +1,5 @@
Backport items for 0.1.2:
- r10148: open cached-routers with FILE_SHARE_READ on win32.
o r10148: open cached-routers with FILE_SHARE_READ on win32.
o r10240,10242: avoid choosing family of exit as guard.
o r10248: handle lack of nul at end of mmaped data.
- r10346: Try even harder not to look at the first byte after an mmap.

View File

@ -199,8 +199,8 @@ tor_mmap_file(const char *filename)
res->mmap_handle = NULL;
res->file_handle = CreateFile(filename,
GENERIC_READ,
0, NULL,
GENERIC_READ, FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
0);