On Fri, Apr 03, 2009 at 11:04:35AM -0700, Steven Dake wrote:
> A previous patch added a check for fd == 0 and caused the poll loop in
> this case in the timer system to continue not executing the timer.
> 
> The poll API uses no fds in this case, so it always returns fd == 0 when
> poll should be expired.


Just got around to testing this. Seems to have fixed the problem.

Thanks, Steve!


> Index: trunk/exec/timer.c
> ===================================================================
> --- trunk/exec/timer.c        (revision 1992)
> +++ trunk/exec/timer.c        (working copy)
> @@ -127,7 +127,7 @@
>               }
>               timer_serialize_unlock_fn ();
>               fds = poll (NULL, 0, timeout);
> -             if (fds == 0 || (fds < 0 && errno == EINTR)) {
> +             if (fds < 0 && errno == EINTR) {
>                       continue;
>               }
>               if (fds < 0) {

> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to