Re: Apache2::SubProcess sucks

Tosh Cooey <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Twelve Hundred Group LLC
Message-ID <[email protected]>
It does, but Proc::Daemon closes a billion file handles and sets new 
process IDs and forks and forks and maybe forks a couple more times for 
good measure... Fingers crossed!

I do enjoy the fact that nobody really seems to have a simple definitive 
vanilla fork/spawn process down pat, it seems everyone does what I do, 
trying this and that stumbling about until they come up with some 
monstrosity like Torsen has that works under the sheer weight of tricks.

Tosh


[email protected] wrote:
> On Feb 20, 2010, at 7:01 AM, Tosh Cooey wrote:
> 
>> Anyway, the solution, at least so far until I run into other problems, 
>> seems to be to just make a system() call and the called program uses 
>> Proc::Daemon and things *seem* to work fine in testing, we'll see when 
>> it hits production...
>>
>> Tosh
>>
> Doesn't a process that calls 'system' wait for the child
> process to complete?  If the parent process is an Apache
> child, is that in keeping with what you're trying to do?
> 
> cmac
> 
> 

-- 
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.