mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge remote-tracking branch 'public/bug2077_share_delete' into maint-0.2.4
This commit is contained in:
commit
3bdc4e5fee
7
changes/bug2077_share_delete
Normal file
7
changes/bug2077_share_delete
Normal file
@ -0,0 +1,7 @@
|
||||
o Major bugfixes (windows):
|
||||
- Open files to be mapped with FILE_SHARE_DELETE so that we can
|
||||
replace them before closing the mapping. This is a likely cause of
|
||||
warnings and crashes when replacing the microdescriptor cache
|
||||
file. Diagnosed based on comments by "doorss" and by Robert
|
||||
Ransom. Possible fix for bug 2077; bugfix on 0.2.2.6-alpha.
|
||||
|
@ -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,
|
||||
GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_DELETE,
|
||||
NULL,
|
||||
OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
|
Loading…
Reference in New Issue
Block a user