http://www.perlmonks.org?node_id=715221


in reply to Re: Problem w/ forking CGI script
in thread Problem w/ forking CGI script

Thanks for the tip. That's good to know in general.

The way I ultimately solved the problem was to examine the requests generated by both Safari and Firefox. One important difference was that Firefox was sending a "Keep-Alive: 300" header, while Safari wasn't. This gave me the idea of modifying the redirection to

print redirect( -Location => self_url(), -Connection => 'close' );
This worked.

But your suggestion of closing STDERR also works. I'll do both from now on, for good measure. :-)

the lowliest monk