We are configured to have mod_perl serve the .pl scripts and leave the .cgi scripts to be served as regular old CGI, just as a point of interest.
Eric > -----Original Message----- > From: Tosh Cooey [mailto:t...@1200group.com] > Sent: Thursday, February 11, 2010 6:08 AM > To: Torsten Förtsch > Cc: modperl@perl.apache.org > Subject: Re: Apache2::SubProcess subprocess not subprocessing properly > > Actually my solution to this problem was pretty rational. I > just turned > mod_perl off for this particular program. > > <Files ~ "(?<!myfork)\.pl$"> > PerlHandler ModPerl::Registry > </Files> > > Will I a have possible performance problems? Sure, but nothing a few > more $25/month servers can't fix, and it saves me all the > aggravation of > the past months trying to get this to work. > > Problem solved! > > Tosh > > > Torsten Förtsch wrote: > > On Tuesday 09 February 2010 14:21:57 Tosh Cooey wrote: > >> use POSIX 'setsid'; > > if( fork ) { POSIX::_exit 0; CORE::exit 0 } > >> chdir '/' or die "Can't chdir to /: $!"; > >> > > simplest is to fork() another time to break the > parent-child relationship. > > > > Keep in mind that you make your service vulnerable if you > simply fork off long > > running processes. > > > > What prevents a user from testing it: > > > > ab -n 100000 -c 100 http://... > > > > This will quite fast create a *lot* of processes. > > > > I tend to use some kind of queue for such processing. But, > of course, it > > depends. > > > > Torsten > > > > -- > McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/ > _______________________________________________ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. _______________________________________________