diff --git a/conev.c b/conev.c index 38bb518..260dbe5 100644 --- a/conev.c +++ b/conev.c @@ -56,7 +56,7 @@ struct eval *add_event(struct poolhd *pool, enum eid type, memset(val, 0, sizeof(*val)); val->fd = fd; - val->index = pool->count; + val->index = c; val->type = type; #ifndef NOEPOLL