diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-09 21:22:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-09 21:22:56 +0000 |
commit | a7696a936d75cfe86438d9bb71498c4dff044bf0 (patch) | |
tree | b9161acc7e5901803d967877009c535436eb5e5e /src/common/compat.c | |
parent | ceac39aa8aa498a39b2e83f87a776bd7c225846b (diff) | |
download | tor-a7696a936d75cfe86438d9bb71498c4dff044bf0.tar.gz tor-a7696a936d75cfe86438d9bb71498c4dff044bf0.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index a55a7e9d4e..a15d09367d 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); |