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
-*- 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]
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
-
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 */
#ifdef SIGILL
apr_signal(SIGILL, sig_coredump);
#endif /* SIGILL */
+#ifdef SIGFPE
+ apr_signal(SIGFPE, sig_coredump);
+#endif /* SIGFPE */
#endif /* NO_USE_SIGACTION */