use sigtrap 'handler' => \&my_handler, 'normal-signals';
View full thread Signal PIPE wird nicht getrappt (CGI)