Igor Shevchenko wrote:
On Saturday 19 February 2005 18:51, you wrote:
please check one more thing where is your cwd in the spawned script, it
should be '/'. in mp1 one had to manually chdir '/' in the script, but I
believe the Apache C API called from spawn_proc_prog does it for you. Is
that right?
Checked, it was not doing chdir.
so it's a good idea to do that to avoid potential mount(1) problems.
> CORE::exit(0);
and you don't need this either, especiall if you call exec()
Right, it was there to avoid any perl warnings for "exec-not-followed-by-{die
|| warn || exit}". From "man perlfunc":
right. but it is a better solution to:
exec or die '...';
since you really want to verify that exec didn't fail.
In anycase, the docs are updated:
http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html#C_spawn_proc_prog_
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com