void evsignal_init(sigset_t *);
void evsignal_process(void);
-int evsignal_recalc(void);
+int evsignal_recalc(sigset_t *);
int evsignal_deliver(void);
int evsignal_add(sigset_t *, struct event *);
int evsignal_del(sigset_t *, struct event *);
sop->event_fdsz = fdsz;
}
- return (evsignal_recalc());
+ return (evsignal_recalc(&sop->evsigmask));
}
int
res = select(sop->event_fds + 1, sop->event_readset,
sop->event_writeset, NULL, tv);
- if (evsignal_recalc() == -1)
+ if (evsignal_recalc(&sop->evsigmask) == -1)
return (-1);
if (res == -1) {
{
struct selectop *sop = arg;
- int signal;
-
if (!(ev->ev_events & EV_SIGNAL))
return (0);