aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-09 21:22:56 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-09 21:22:56 +0000
commita7696a936d75cfe86438d9bb71498c4dff044bf0 (patch)
treeb9161acc7e5901803d967877009c535436eb5e5e /src/common/compat.c
parentceac39aa8aa498a39b2e83f87a776bd7c225846b (diff)
downloadtor-a7696a936d75cfe86438d9bb71498c4dff044bf0.tar
tor-a7696a936d75cfe86438d9bb71498c4dff044bf0.tar.gz
r12700@catbus: nickm | 2007-05-09 17:22:53 -0400
[Backport candidate] On windows, open cached-routers with the sharing mode "FILE_SHARE_READ so that other processes can read it while Tor is running. (Reported by Janbar). svn:r10148
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index a55a7e9d4..a15d09367 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -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);