Where are you suggesting those closes be put? perhaps as a diff/patch against the code listing or some line numbers would clarify your intent...
It works as expected for me, when run as CGI in my userdir on Apache2, perhaps you're having issues with mod_perl or some other configuration issues?
Running:
#! /bin/sh echo -e 'Content-Type: text/plain\n\n' $SERVER_SOFTWARE;
I'm given
Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch7 mod_perl/2.0.2 Perl/v5.8.8
Although my scripts are run with the directive below, in a .htaccess.
<FilesMatch ^(col39_watching_long_processes_through_CGI|server_softwar +e)$> Options ExecCgi SetHandler cgi-script </FilesMatch>
@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;
In reply to Re^3: close STDOUT does not work, why?
by f00li5h
in thread close STDOUT does not work, why?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |