some questions about AnyEvent::Fork
Dietmar Maurer
dietmar at proxmox.com
Fri Apr 19 12:08:05 CEST 2013
> I don't think it's a problem to implement, but I don't quite see what
> AnyEvent::Fork would help there - AnyEvent::Fork does just that, solving a few
> of the annoying problems along the road.
>
> If you already have a process and can fork from there, AnyEvent::Fork cannot
> improve on that - create a socketpair, fork, close, and you are settled.
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.
More information about the anyevent
mailing list