When I'm running my libevent based application under valgrind I'm
getting messages about memory access violations in epoll.c. when
changing line 125 from:

nfiles = rl.rlim_cur - 1;

to:

nfiles = rl.rlim_cur;

then the application runs with no complains from valgrind. The problems
shows when reaching the limit of allowed open file descriptors.

>From the remark above this line I understand that the -1 was hacked in
because some issue with Solaris but was it ever tested with other
platforms?

 

I'm running libevent 1.4.9-stable on ubuntu linux
2.6.27-11-generic(SMP).

 

Thanks

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to