99 perror("kevent"); |
99 perror("kevent"); |
100 continue; |
100 continue; |
101 } |
101 } |
102 |
102 |
103 for(int i=0;i<nev;i++) { |
103 for(int i=0;i<nev;i++) { |
104 event_t *event = events[i].udata; |
104 event_t *event = (event_t*)events[i].udata; |
105 if(event->fn) { |
105 if(event->fn) { |
106 if(event->fn(ev, event)) { |
106 if(event->fn(ev, event)) { |
107 // TODO: reassociate? |
107 // TODO: reassociate? |
108 } else if(event->finish) { |
108 } else if(event->finish) { |
109 event->finish(ev, event); |
109 event->finish(ev, event); |