From 01a932fe1fd385fdb961efdbac991dd4b481fc49 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Fri, 7 Mar 2003 23:19:05 +0000 Subject: [PATCH] fix signal usage svn:r41 --- select.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/select.c b/select.c index 00046c73..7749f0c7 100644 --- a/select.c +++ b/select.c @@ -75,7 +75,7 @@ struct selectop { 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 *); @@ -154,7 +154,7 @@ select_recalc(void *arg, int max) sop->event_fdsz = fdsz; } - return (evsignal_recalc()); + return (evsignal_recalc(&sop->evsigmask)); } int @@ -180,7 +180,7 @@ select_dispatch(void *arg, struct timeval *tv) 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) { @@ -247,8 +247,6 @@ select_del(void *arg, struct event *ev) { struct selectop *sop = arg; - int signal; - if (!(ev->ev_events & EV_SIGNAL)) return (0); -- 2.40.0