The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::SIG - Override apache signal handlers with Perl's

SYNOPSIS

 use Apache::SIG ();
 Apache::SIG->set;

DESCRIPTION

When a client drops a connection and apache is in the middle of a write, a timeout will occur and httpd sends a SIGPIPE. When apache's SIGPIPE handler is used, Perl may be left in the middle of it's eval context, causing bizarre errors during subsequent requests are handled by that child. When Apache::SIG is used, it installs a different SIGPIPE handler which rewinds the context to make sure Perl is back to normal state, preventing these bizarre errors.

As of mod_perl version 1.07_02, the Apache::SIG set method is called by default when the server is started.

AUTHOR

Doug MacEachern

SEE ALSO

perlvar(1)