The reason why the stop button does not stop the script lies in the fact
that you're script does not produce any output while it is running. SIGPIPE
is only raised when your script tries to write to a closed (STOPed)
connection. No output from your script = no SIGPIPE!
Tobias
At 07:29 PM 10/22/99 +0200, Stas Bekman wrote:
>Hi,
>
>Let's take a little script that obviously "hangs" the server:
>
> my $r = shift;
> $r->send_http_header('text/plain');
> $|=1; # so we would see the $$ printed
> print "OK $$\n";
> sleep 1, $i++ while 1;
>
>The second question is how comes that the above little script never quits
>after the stop button was pressed? Apache was supposed to detect SIGPIPE
>and abort the run... but it doesn't - it's very easy to reproduce - just
>run it... I've used $|=1 to print the $$ and check that it really hangs...
>
>Thanks!
>
>_______________________________________________________________________
>Stas Bekman mailto:[EMAIL PROTECTED] www.singlesheaven.com/stas
>Perl,CGI,Apache,Linux,Web,Java,PC at www.singlesheaven.com/stas/TULARC
>www.apache.org & www.perl.com == www.modperl.com || perl.apache.org
>single o-> + single o-+ = singlesheaven http://www.singlesheaven.com
>
>