On 08/18/2014 02:20 PM, Ruediger Pluem wrote:


jkal...@apache.org wrote:
Author: jkaluza
Date: Mon Aug 18 07:43:43 2014
New Revision: 1618555

URL: http://svn.apache.org/r1618555
Log:
prefork: Ignore SIGINT in child. This fixes race-condition in signals handling
when httpd is runnning on foreground and user hits ctrl+c. In this case, SIGINT
is sent to all children followed by SIGTERM from the main process, which
interrupts the SIGINT handler and leads to inconsistency (process freezes
or crashes).

Modified:
     httpd/httpd/trunk/server/mpm/prefork/prefork.c


Don't we need to do this for the other MPM's as well?

I haven't tried to reproduce it with different MPMs, but it looks like good idea. The code looks very similar when it comes to signal handling, so the same problem can be there too. I will try to reproduce this bug and commit fix also for other MPMs eventually.

Jan Kaluza

Regards

Rüdiger


Reply via email to