Ver Fonte

* initialise timespec.tv_sec again for generic BasicEventWaitFor

git-svn-id: trunk@8836 -
Jonas Maebe há 18 anos atrás
pai
commit
2701a0f743
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      rtl/unix/cthreads.pp

+ 1 - 0
rtl/unix/cthreads.pp

@@ -820,6 +820,7 @@ begin
       else
         result := wrError;
 {$else}
+      timespec.tv_sec:=0;
       { 500 miliseconds or less -> wait once for this duration }
       if (timeout <= 500) then
         loopcnt:=1