On Thu, Apr 29, 2010 at 2:14 PM, Sebastian Sjöberg
wrote:
[...]
> Cheers, I haven't yet been able to reproduce it when disabling epoll.
>
> I've started to debug the evmap_io_active calls and after a while there are a
> no events being activated as you said so I guess at some point the there's a
Hi,
I'm doing the following with libevent 2.0.4 on Linux:
strcut event_base *base = event_init()
... /* not registering any events */
for (int fd = 3; fd < 256; ++fd) close(fd);
event_reinit(base);
...
This eventually reports the following warning:
[warn] Epoll ADD on fd 7 failed.
>> I'd like to register two struct event's for the same filehandle, with
>> EV_READ (without EV_PERSIST), with multiple callbacks, and whenever
>> the file becomes readable, I'd like to get both of my callbacks be
>> called
>
> Libevent 1.4.x and earlier don't support this. Libevent 2.0.x does.
T
On Apr 30, 2010, at 11:48 AM, Pavel Pisa wrote:
> Hello All,
>
Hi,
Thanks for the nice information.
[...]
>
> You can easily check, if this is cause of your troubles
> by running same code on 2.6.30+ kernel.
> If you need correct behavior even on older kernels,
> then it can be problematic.