lighttpd forum lighty > ev->pollfds[ndx].revents & POLLNVAL -- /* should never happe

Posted by Shannon (Guest)
on 02.09.2008 00:50
Gday

Any idea why this code:

        if (ev->pollfds[ndx].revents & POLLNVAL) {
                /* should never happen */
                SEGFAULT();
        }

in static int fdevent_poll_event_get_revent(fdevents *ev, size_t ndx)

Running 64bit debian.  Happens frequently under heavy load.  The server 
just segfauls.

Any workaround?

Shannon
Posted by Guest (Guest)
on 02.09.2008 01:08
Or even a way to modify the code to handle this condition gracefully?

Shannon wrote:
> Gday
> 
> Any idea why this code:
> 
>         if (ev->pollfds[ndx].revents & POLLNVAL) {
>                 /* should never happen */
>                 SEGFAULT();
>         }
> 
> in static int fdevent_poll_event_get_revent(fdevents *ev, size_t ndx)
> 
> Running 64bit debian.  Happens frequently under heavy load.  The server 
> just segfauls.
> 
> Any workaround?
> 
> Shannon