mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 03:59:25 +02:00
* Add waiting time in case of access error on windows OS
git-svn-id: trunk@32952 -
This commit is contained in:
parent
c638559dc1
commit
8c5adb86cd
@ -563,6 +563,17 @@ begin
|
||||
assign(t,'out.'+UniqueSuffix);
|
||||
{$I-}
|
||||
reset(t);
|
||||
{$ifdef windows}
|
||||
{ try to cope with Windows problems related to AntiVirus scanner
|
||||
that generate lag time during which access to a given if is forbidden }
|
||||
if (inoutres=5) then
|
||||
begin
|
||||
Sleep(5000);
|
||||
ioresult;
|
||||
Verbose(V_Warning,'Windows file not accessible out.'+UniqueSuffix);
|
||||
reset(t);
|
||||
end;
|
||||
{$endif windows}
|
||||
readln(t,hs);
|
||||
close(t);
|
||||
erase(t);
|
||||
|
Loading…
Reference in New Issue
Block a user