some questions about AnyEvent::Fork
Marc Lehmann
schmorp at schmorp.de
Fri Apr 19 15:20:06 CEST 2013
On Fri, Apr 19, 2013 at 10:08:05AM +0000, Dietmar Maurer
<dietmar at proxmox.com> wrote:
> I need to fork inside workers and tasks, and the safe fork point is in
> the master process.
>
> So I guess I will simply implement something like
> AnyEvent::Fork::Serve::serve() in my master, and make all workers and
> tasks use that API when they need to fork.
>
> I just thought I can use AnyEvent::Fork for that, but creating an extra
> template process is not an option for me.
Hmm, seems you would have to - you can't mix serve() and your own code in
the same process.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list