in reply to forking in a cgi script

The trick is to have the child close(STDOUT) after the fork. This lets the webserver see an EOF on the input handle when the parent exits, freeing the transaction with the browser.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: forking in a cgi script
by Becky (Beadle) on Mar 25, 2004 at 15:46 UTC
    I tried it, but no luck. I suddenly thought that it might be something to do with running the webpage on Apache. I found something called Apache::SubProcess but can't find any help on using it. Any ideas if this would work?