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


in reply to SIGPIPE not trapped after sleep in CGI

Try to add following two lines after print "output #2\n";:

sleep 5; print "output #3\n";
and you will get your SIGPIPE.

Update: