From 575c4a42582d507b8787a2e9ddbec1953c041bec Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Wed, 12 Apr 2006 23:05:33 +0000 Subject: [PATCH] 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 --- lib/filesys.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesys.C b/lib/filesys.C index 4c910262e6..d6ad510b5a 100755 --- a/lib/filesys.C +++ b/lib/filesys.C @@ -371,7 +371,7 @@ FILE* boinc_fopen(const char* path, const char* mode) { if (!f) { for (int i=0; i<5; i++) { boinc_sleep(drand()); - f = fopen(path, mode); + f = _fsopen(path, mode, _SH_DENYNO); if (f) break; } }