Hi all,
When I am adding Solaris event port to Lighttpd, I find
there is a piece
of interesting code.
I am not sure if the code returns wrong variable?
In Lighttpd 1.4.18, there are several implementations of
fdevent_*_event_get_revent
For example: file fdevent_linux_sysepoll.c
Line: 84
static int fdevent_linux_sysepoll_event_get_revent(fdevents
*ev, size_t
ndx) {
int events = 0, e;
e = ev->epoll_events[ndx].events;
if (e & EPOLLIN) events |= FDEVENT_IN;
if (e & EPOLLOUT) events |= FDEVENT_OUT;
if (e & EPOLLERR) events |= FDEVENT_ERR;
if (e & EPOLLHUP) events |= FDEVENT_HUP;
if (e & EPOLLPRI) events |= FDEVENT_PRI;
return e;
}
I think it should return the variable events not the
variable e. Also
there is the same problem in the lighttpd 1.5.0 r1992.
Right?
Regards,
Adam
|