Show
Ignore:
Timestamp:
12/20/08 16:09:21 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1229789361 +0000
git-parent:

[c478b725380bce173a7b7f4582ecdbd588b7a24b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1229789361 +0000
Message:

fixes #69

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_ports_impl.c

    r04aaf95 r7e33751  
    9494    if(mask & EVENTER_WRITE) events |= POLLOUT; 
    9595    if(mask & EVENTER_EXCEPTION) events |= POLLERR; 
    96     if(port_associate(port_fd, PORT_SOURCE_FD, e->fd, events, e) == -1) { 
     96    if(port_associate(port_fd, PORT_SOURCE_FD, e->fd, events, (void *)e->fd) == -1) { 
    9797      noitL(eventer_err, 
    9898            "eventer port_associate failed: %s\n", strerror(errno)); 
     
    340340 
    341341        pe = &pevents[idx]; 
    342         if(pe->portev_source == PORT_SOURCE_FD) 
    343         e = (eventer_t)pe->portev_user; 
     342        if(pe->portev_source != PORT_SOURCE_FD) continue; 
    344343        fd = (int)pe->portev_object; 
     344        assert((int)pe->portev_user == fd); 
     345        e = master_fds[fd].e; 
    345346        mask = 0; 
    346347        if(pe->portev_events & (POLLIN | POLLHUP))