[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua-ev vs. fork
- From: Alexander Gladysh <agladysh@...>
- Date: Fri, 23 Apr 2010 15:14:23 +0400
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.