Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 380bd1f756d9c44bb76748d1f4d4e6d6 > files > 29

apache-2.2.17-5.2.mga1.src.rpm


Set SIGXFSZ to be ignored, so a write() beyond 2gb will fail with
E2BIG rather than killing the process

Upstream-HEAD: needed
Upstream-2.0: omit
Upstream-Status: Obsoleted by proper LFS support in APR, do it anyway
Upstream-PR: 13511

--- server/mpm/prefork/prefork.c	2008-05-31 13:58:46.000000000 +0200
+++ server/mpm/prefork/prefork.c.oden	2008-12-12 13:10:39.000000000 +0100
@@ -399,7 +399,7 @@ static void set_signals(void)
         ap_log_error(APLOG_MARK, APLOG_WARNING, errno, ap_server_conf, "sigaction(SIGXCPU)");
 #endif
 #ifdef SIGXFSZ
-    sa.sa_handler = SIG_DFL;
+    sa.sa_handler = SIG_IGN;
     if (sigaction(SIGXFSZ, &sa, NULL) < 0)
         ap_log_error(APLOG_MARK, APLOG_WARNING, errno, ap_server_conf, "sigaction(SIGXFSZ)");
 #endif