* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: poll.c 390 2005-12-07 18:46:56Z nenolod $
+ * $Id: poll.c 3229 2007-03-05 17:23:07Z nenolod $
*/
#include "config.h"
static void
poll_update_pollfds(int fd, short event, PF * handler)
{
- fde_t *F = &fd_table[fd];
+ fde_t *F = comm_locate_table(fd);
int comm_index;
if(F->comm_index < 0)
comm_setselect(int fd, fdlist_t list, unsigned int type, PF * handler,
void *client_data, time_t timeout)
{
- fde_t *F = &fd_table[fd];
+ fde_t *F = comm_locate_fd(fd);
s_assert(fd >= 0);
s_assert(F->flags.open);
(pollfd_list.pollfds[ci].fd) == -1)
continue;
fd = pollfd_list.pollfds[ci].fd;
- F = &fd_table[fd];
+ F = comm_locate_fd(fd);
if(revents & (POLLRDNORM | POLLIN | POLLHUP | POLLERR))
{
hdl = F->read_handler;