[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] 'Lost interrupt' - found
From: |
Mike Anderson |
Subject: |
[Help-smalltalk] 'Lost interrupt' - found |
Date: |
Sun, 11 Sep 2005 10:57:02 +0000 |
User-agent: |
Mozilla Thunderbird 0.7.3 (X11/20040803) |
Continuing to mess around with file descriptors, I think I've tracked
down Michael Koehne's bug.
In file_polling_handler, the loop is cut short once all fds that have
events on them have been checked, but that means that the remainder,
that are still waiting, don't get moved up in the array and get lost.
One line patch attached.
Mike
--- arch/libgst/events.c 2005-09-07 07:22:12.000000000 +0000
+++ mod/libgst/events.c 2005-09-11 10:43:30.000000000 +0000
@@ -193,7 +193,7 @@
return;
num_used_pollfds = 0;
- for (node = head, pprev = &head; node && n; node = *pprev)
+ for (node = head, pprev = &head; node ; node = *pprev)
{
struct pollfd *poll = &pollfds[node->poll];