mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 12:20:19 +02:00
* Do not lock output files
This commit is contained in:
parent
c3339e9a51
commit
2e1c7cbc10
@ -585,7 +585,8 @@ begin
|
|||||||
phtInput: Result:=FileOpen(aFileName,fmOpenRead);
|
phtInput: Result:=FileOpen(aFileName,fmOpenRead);
|
||||||
phtOutput,
|
phtOutput,
|
||||||
phtError: if FileExists(aFileName) then
|
phtError: if FileExists(aFileName) then
|
||||||
Result:=FileOpen(aFileName,fmOpenWrite or fmShareDenyNone)
|
// No locking for existing file. (e.g. /dev/null cannot be locked)
|
||||||
|
Result:=FileOpen(aFileName,fmOpenWrite or fmShareNoLocking)
|
||||||
else
|
else
|
||||||
Result:=FileCreate(aFileName,fmShareDenyNone,DefaultRights)
|
Result:=FileCreate(aFileName,fmShareDenyNone,DefaultRights)
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user