Try to add following two lines after print "output #2\n";:
and you will get your SIGPIPE.sleep 5; print "output #3\n";
Update:
In reply to Re: SIGPIPE not trapped after sleep in CGI
by zwon
in thread SIGPIPE not trapped after sleep in CGI
by GwenDragon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |