RES: MP2 Forking - Untie socket

[prev] [thread] [next] [Date index for 2005/02/14]

From: vsmori
Subject: RES: MP2 Forking - Untie socket
Date: 16:19 on 14 Feb 2005
Thanks Stas, that was usefull.

From my undestanding, the right solution in MP2 would be using
Apache::SubProcess::spawn_proc_prog function instead of
forking the apache
request child process and call cleanup_for_exec (forget
compat, i want to be
MP2 native).

But using spawn_proc_prog to execute an perl code, will not
be handled in
mod_perl2 context (cached interpreter), correct?

What should be the correct way to fork and clean up what is
un-nedded in
child just to take the advantage of the speed to run my perl
execution
process?

The point is the fact that my perl script that should be
executed directly
from the handler forks itself to do an parallel processing.

Regards,

Vitor

-----Mensagem original-----
De: Stas Bekman [mailto:stas@xxxxxx.xxx]
Enviada em: sexta-feira, 11 de fevereiro de 2005 20:32
Para: vsmori
Cc: modperl
Assunto: Re: MP2 Forking - Untie socket


vsmori wrote:
> Hello,
>
> There's an replacement for function mp1's
> Apache::SubProcess:cleanup_for_exec in mp2 ?

http://perl.apache.org/docs/2.0/user/porting/compat.html#C__r_E_gt_cleanu=
p_f
or_exec_=0A =0A__________________________________________________________=
________________=0AAcabe com aquelas janelinhas que pulam na sua tela.=0A=
AntiPop-up UOL - =C9 gr=E1tis!=0Ahttp://antipopup.uol.com.br/=0A

RES: MP2 Forking - Untie socket
vsmori 16:19 on 14 Feb 2005

Re: RES: MP2 Forking - Untie socket
Stas Bekman 23:05 on 15 Feb 2005

Re: RES: MP2 Forking - Untie socket
vsmori 23:26 on 15 Feb 2005

Generated at 11:21 on 20 Feb 2005 by mariachi v0.52