Thanks for the reply. I'd figured out earlier today that I probably should be using Apache::SubProcess so it's good to see confirmation. A few lines of code replaced 50+. It's a good thing.
Perl can only get better ;)
When spawn_proc_prog() is called I get a segfault in strrchr when modperl_spawn_proc_prog calls ap_make_dirstr_parent, which then calls strrchr. Unfortunately, my Perl 5.8 and Apache are not compiled with debugging on so I'm recompiling all now. More later....
Ouch, a simple test case would be useful and hopefully I'll be able to reproduce it. As I mentioned there are only some very basic tests in t/apache/subprocess.t & t/response/TestApache/subprocess.pm, if you can add more tests that would be great.
Understand re: cleanup_for_exec
I read the Avoiding Zombies section and $SIG{CHLD} = 'IGNORE' didn't work for me. I realize that I didn't try the waitpid() example after the fork.
I suppose this varies from OS to OS :(
Was your suggestion different from the one in the guide?
__________________________________________________________________ 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