httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <>
Subject Re: When to install signal handlers
Date Mon, 25 Jul 2011 14:01:26 GMT
I don't remember any discussions on the subject or reasons why the timing is
as late as it is.  I assume signal handlers are cloned by the fork(). ++1 to
eliminating silent failures.


On Sun, Jul 24, 2011 at 2:25 PM, Stefan Fritsch <> wrote:

> 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

View raw message