Altered boinc_fopen() to use _fsopen() under _WIN32 with the sharing

flags set to the most permissive value.  This may solve some virus
scanner locking problems.

svn path=/trunk/boinc/; revision=9860
This commit is contained in:
Eric J. Korpela 2006-04-12 23:05:33 +00:00
parent 92ee5275f9
commit 575c4a4258
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ FILE* boinc_fopen(const char* path, const char* mode) {
if (!f) { if (!f) {
for (int i=0; i<5; i++) { for (int i=0; i<5; i++) {
boinc_sleep(drand()); boinc_sleep(drand());
f = fopen(path, mode); f = _fsopen(path, mode, _SH_DENYNO);
if (f) break; if (f) break;
} }
} }