lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Apr 23, 2010 at 14:42, Alexander Gladysh <agladysh@gmail.com> wrote:
> On Fri, Apr 23, 2010 at 07:28, Brian Maher <brian@brimworks.com> wrote:
>> I suspect this is because luaopen_ev() has this line of code:

>>  pthread_atfork(0, 0, ev_default_fork);

>> Perhaps ev_default_fork isn't working right?

> Perhaps. I also note that you do not call ev_loop_fork() for
> non-default loops. You probably should.

BTW, regarding that pthread dependency.

Consider exposing ev.at_fork() callback to user and creating a
separate, auxiliary Lua module which exposes pthread_atfork to Lua.

This way users, who do not need forking, would not have to pay for it. :-)

Alexander.