httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject When to install signal handlers
Date Sun, 24 Jul 2011 18:25:09 GMT
Hi,

the Unix MPMs detach from the console in the pre-config hook but 
install their signal handlers (including the one for SIG_SEGV) only 
later, in the mpm hook. If a segfault happens in this time period, the 
segfault will not be visible on the console, won't be reported to the 
script starting httpd, and won't be logged in the error log. This can 
be somewhat confusing to users. I have seen this once with a mod_php 
bug.

Does anybody remember if there is a reason why the signal handlers are 
installed that late? Or can the code simply be moved to the pre-config 
hook, before detaching?

Cheers,
Stefan

Mime
View raw message