Signed-off-by: Pierre Habouzit <madcoder@debian.org>
if (event & EPOLLRDHUP) {
IGNORE(el_job_release(w, EL_RDHUP));
} else if (w->mode != w->emode) {
- w->m->on_event(w, EL_EVT_INOUT ^ w->emode);
+ IGNORE(w->m->on_event(w, EL_EVT_INOUT ^ w->emode));
} else {
if (event & EPOLLIN)
evt |= EL_EVT_IN;
if (event & EPOLLOUT)
evt |= EL_EVT_OUT;
- w->m->on_event(w, evt);
+ IGNORE(w->m->on_event(w, evt));
}
break;
typedef struct machine_t {
const char *name;
__must_check__ int (*setup)(job_t *w, void *);
- int (*on_event)(job_t *w, el_event);
+ __must_check__ int (*on_event)(job_t *w, el_event);
void (*finalize)(job_t *w, el_status);
} machine_t;