Browse Source

* fixed ESysEIntr checking for fpflock

git-svn-id: trunk@12635 -
Jonas Maebe 16 năm trước cách đây
mục cha
commit
f9556bad39
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      rtl/unix/sysutils.pp

+ 2 - 1
rtl/unix/sysutils.pp

@@ -206,7 +206,8 @@ begin
       end;
       end;
       repeat
       repeat
         lockres:=fpflock(Handle,lockop);
         lockres:=fpflock(Handle,lockop);
-      until lockres<>ESysEIntr;
+      until (lockres=0) or
+            (fpgeterrno<>ESysEIntr);
       if (lockres<>0) then
       if (lockres<>0) then
         begin
         begin
           FpClose(Handle);
           FpClose(Handle);