src/server/daemon/event_bsd.c

changeset 112
b962d83124bc
parent 111
c93be34fde76
child 133
87b405d61f64
equal deleted inserted replaced
110:43a746e905f6 112:b962d83124bc
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);

mercurial