Browse Source

* open fpmake ini files with fmShareDenyNone to prevent spurious
locking errors on Linux in some cases (it seems some locks linger
for a while even after the process that created them has finished,
unless the makefiles are allowed to start processing a new directory
before the fpmake invocation in a previous directory has
finished)

git-svn-id: trunk@19614 -

Jonas Maebe 13 years ago
parent
commit
c8154860bb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/fpmkunit/src/fpmkunit.pp

+ 4 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -1535,7 +1535,10 @@ Var
   Line : String;
   Line : String;
   I,P,PC : Integer;
   I,P,PC : Integer;
 begin
 begin
-  F:=TFileStream.Create(AFileName,fmOpenRead);
+  // On some file systems and when using a large number of parallel make
+  // processes, the lock from the creation of the ini file may not yet
+  // have been released even though the file has been closed already
+  F:=TFileStream.Create(AFileName,fmOpenRead or fmShareDenyNone);
   Try
   Try
     L.LoadFromStream(F);
     L.LoadFromStream(F);
     // Fix lines.
     // Fix lines.