On Mon, 15 May 2000, Leonardo Madrigal wrote:
> Hi everyone!
>
> Im working on some scripts that run under mod_perl via
> Apache::Registry, on the latest stable versions of mod_perl and apache
> under FreeBSD 3.3-stable.
>
>
> This scripts make authentication to cybercash using the api that they
> provide.
>
> The problem is that in the API are 2 programs (binarys made in C) that
> are called, if i ran the scripts under Apache::Registry, when the perl
> scripts are done and the httpd proccess end, the 2 programs now are in
> zombie state, for every request.
>
> If i dont use mod_perl the scripts are ok. No zombie proccesses.
>
> This is the code from cybercash that runs the first one:
> MCKencrypt="/usr/local/bin/mckencrypt";
> unless (open2(\*CIPHER, \*PLAINTEXT, $MCKencrypt)) {
> return($E_EncryptFailed, &MCKGetErrorMessage($E_EncryptFailed));
> }
>
> As you can see, they use open() and my perl was not compiled with sfio
> support.
> The error is cause mod_perl doesnt allow open,exec without sfio?
>
> Is there a workaround rather that just installing sfio?
Hmm, will this help you?
http://perl.apache.org/guide/performance.html#Forking_and_Executing_Subprocess
> Or is there a way to use the $r request record outside from mod_perl?
> ,i really like the $r but i dont know how to use it outsite mod_perl.
>
> Thank you very much.
>
> -Leonardo.
>
>
>
>
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org