summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 260787d..7e9423e 100644
--- a/ev.c
+++ b/ev.c
@@ -509,7 +509,8 @@ fd_event (EV_P_ int fd, int revents)
void
ev_feed_fd_event (EV_P_ int fd, int revents)
{
- fd_event (EV_A_ fd, revents);
+ if (fd >= 0 && fd < anfdmax)
+ fd_event (EV_A_ fd, revents);
}
void inline_size
@@ -1165,6 +1166,12 @@ ev_default_fork (void)
/*****************************************************************************/
+void
+ev_invoke (EV_P_ void *w, int revents)
+{
+ EV_CB_INVOKE ((W)w, revents);
+}
+
void inline_speed
call_pending (EV_P)
{