aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-06-12 10:45:48 -0400
committerNick Mathewson <nickm@torproject.org>2013-06-12 10:45:48 -0400
commitfff9386af87bd0f54cda1ef4fe0bf131de7c3d8e (patch)
tree342b0cb9f98f15a13410f48d8c671cfe60d61dc0 /src/common/compat.c
parent3bdc4e5feee7059344f61d8d7362c77fafc5c8a8 (diff)
downloadtor-fff9386af87bd0f54cda1ef4fe0bf131de7c3d8e.tar
tor-fff9386af87bd0f54cda1ef4fe0bf131de7c3d8e.tar.gz
Revert "Use the FILE_SHARE_DELETE flag for CreateFile on a mapping"
This reverts commit 884a0e269c382f9e927d8c8b1ef4ef9d2d48379d. I'm reverting this because it doesn't actually make the problem go away. It appears that instead we need to do unmap-then-replace.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index cb1dd787a..c97a4545c 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -248,7 +248,7 @@ tor_mmap_file(const char *filename)
strlcpy(tfilename,filename,MAX_PATH);
#endif
file_handle = CreateFile(tfilename,
- GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_DELETE,
+ GENERIC_READ, FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,