]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge from trunk:
authorJeff Trawick <trawick@apache.org>
Mon, 29 Jan 2007 17:54:10 +0000 (17:54 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 29 Jan 2007 17:54:10 +0000 (17:54 +0000)
  Unix MPMs: Catch SIGFPE so that exception hooks and CoreDumpDirectory
  can work after that terminating signal.

Submitted by: Eric Covener <covener gmail.com>
Reviewed by: trawick, rpluem, jorton

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@501130 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
server/mpm_common.c

diff --git a/CHANGES b/CHANGES
index 324bff2fde88aca0004397df4ab8f5b1f73cdcf5..1561baf5416912d1dcad186b503ac107c5ff71dc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.5
 
+  *) Unix MPMs: Catch SIGFPE so that exception hooks and CoreDumpDirectory
+     can work after that terminating signal.
+     [Eric Covener <covener gmail.com>]
+
   *) Win32: Makefile.win will now build with MS VC 8 (Visual Studio 2005)
      including embedding the .manifest information into each binary.
      [William Rowe]
diff --git a/STATUS b/STATUS
index d0c2a9db52f12c211a6b259f6bc9428884a4be4b..ec5d3bf71bc8b889ffbf6bd466ca963854245cea 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -194,9 +194,3 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
      http://svn.apache.org/viewvc?view=rev&revision=486320
      +1: trawick, rpluem
 
-   * Unix MPMs: Catch SIGFPE so that exception hooks and CoreDumpDirectory
-     can work after that terminating signal.
-     http://svn.apache.org/viewvc?view=rev&revision=500881
-     http://svn.apache.org/viewvc?view=rev&revision=500897
-     +1: trawick, rpluem, jorton
-
index 26a74891031b850f81bec64e506fcb0e39878eca..c654cbfb2212ebea7d5f0eb871c055457e8f525a 100644 (file)
@@ -1217,6 +1217,10 @@ apr_status_t ap_fatal_signal_setup(server_rec *s, apr_pool_t *in_pconf)
     if (sigaction(SIGILL, &sa, NULL) < 0)
         ap_log_error(APLOG_MARK, APLOG_WARNING, errno, s, "sigaction(SIGILL)");
 #endif
+#ifdef SIGFPE
+    if (sigaction(SIGFPE, &sa, NULL) < 0)
+        ap_log_error(APLOG_MARK, APLOG_WARNING, errno, s, "sigaction(SIGFPE)");
+#endif
 
 #else /* NO_USE_SIGACTION */
 
@@ -1233,6 +1237,9 @@ apr_status_t ap_fatal_signal_setup(server_rec *s, apr_pool_t *in_pconf)
 #ifdef SIGILL
     apr_signal(SIGILL, sig_coredump);
 #endif /* SIGILL */
+#ifdef SIGFPE
+    apr_signal(SIGFPE, sig_coredump);
+#endif /* SIGFPE */
 
 #endif /* NO_USE_SIGACTION */