diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2002-07-21 02:23:33 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2002-07-21 02:23:33 +0000 |
commit | 1e1df07282d1c7a98c7ffae7e7e6c6d2a9c7af27 (patch) | |
tree | a2c9837d1f55698fe9363480361ee810419249fb /www/apache20/files | |
parent | Bump portrevision (textproc/expat2 shlib bump). (diff) |
- Add a small hack for worker MPM [1]
(worker MPM with this hack seems to work without visible problems.
and still requires -DFORCE_THREADING_MPM to build for worker MPM.)
- Fix plist for worker MPM
- Comment out fancy modules from default httpd.conf
Tested on: ref5.freebsd.org, several 4-stable machines [1]
Notes
Notes:
svn path=/head/; revision=63298
Diffstat (limited to 'www/apache20/files')
-rw-r--r-- | www/apache20/files/patch-Makefile.in | 16 | ||||
-rw-r--r-- | www/apache20/files/patch-server:main.c | 36 | ||||
-rw-r--r-- | www/apache20/files/patch-srclib:apr:threadproc:unix:procsup.c | 18 |
3 files changed, 67 insertions, 3 deletions
diff --git a/www/apache20/files/patch-Makefile.in b/www/apache20/files/patch-Makefile.in index 78a67b909c46..398b43f9a899 100644 --- a/www/apache20/files/patch-Makefile.in +++ b/www/apache20/files/patch-Makefile.in @@ -1,5 +1,5 @@ --- Makefile.in.orig Sat Jun 15 18:41:03 2002 -+++ Makefile.in Tue Jun 18 22:37:19 2002 ++++ Makefile.in Sun Jul 21 03:15:18 2002 @@ -31,12 +31,14 @@ @test -d $(DESTDIR)$(sysconfdir) || $(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir) @cd $(top_srcdir)/docs/conf; \ @@ -17,7 +17,17 @@ ( \ n_lm=`awk 'BEGIN {n=0} /@@LoadModule@@/ {n+=1} END {print n}' < $$i`; \ if test $$n_lm -eq 0 -o "x$(DSO_MODULES)" = "x"; then \ -@@ -104,11 +106,14 @@ +@@ -54,6 +56,9 @@ + if test "x$$j" = "xssl"; then \ + echo "<IfDefine SSL>"; \ + fi; \ ++ if [ `echo "$$j" | egrep 'cgid|cache|dav|digest|proxy'` ]; then \ ++ echo -n "#"; \ ++ fi; \ + if test $$j != "^EOL^"; then \ + echo "LoadModule $${j}_module $(rel_libexecdir)/mod_$${j}.so"; \ + fi; \ +@@ -104,11 +109,14 @@ install-htdocs: @echo Installing HTML documents @@ -35,7 +45,7 @@ install-error: @echo Installing error documents -@@ -124,9 +129,10 @@ +@@ -124,9 +132,10 @@ install-cgi: @echo Installing CGIs diff --git a/www/apache20/files/patch-server:main.c b/www/apache20/files/patch-server:main.c new file mode 100644 index 000000000000..d297d4425fdb --- /dev/null +++ b/www/apache20/files/patch-server:main.c @@ -0,0 +1,36 @@ +--- server/main.c.orig Thu Jun 13 04:34:56 2002 ++++ server/main.c Sun Jul 21 08:54:09 2002 +@@ -78,6 +78,11 @@ + #include "ap_mpm.h" + #include "mpm_common.h" + ++#ifdef FREEBSD_THREAD_HACK ++#include <unistd.h> ++AP_DECLARE(int) ap_exists_config_define(const char *name); ++#endif ++ + /* WARNING: Win32 binds http_main.c dynamically to the server. Please place + * extern functions and global data in another appropriate module. + * +@@ -558,6 +563,21 @@ + destroy_and_exit_process(process, 1); + } + ++#ifdef FREEBSD_THREAD_HACK ++ { ++ int r; ++ ++ if (! ap_exists_config_define("NO_DETACH")) { ++ if ((r = fork()) > 0) ++ return 0; ++ if (r == -1) { ++ perror("fork"); ++ return 0; ++ } ++ setsid(); ++ } ++ } ++#endif + ap_process_config_tree(server_conf, ap_conftree, process->pconf, ptemp); + ap_fixup_virtual_hosts(pconf, server_conf); + ap_fini_vhost_config(pconf, server_conf); diff --git a/www/apache20/files/patch-srclib:apr:threadproc:unix:procsup.c b/www/apache20/files/patch-srclib:apr:threadproc:unix:procsup.c new file mode 100644 index 000000000000..13c663af7bd4 --- /dev/null +++ b/www/apache20/files/patch-srclib:apr:threadproc:unix:procsup.c @@ -0,0 +1,18 @@ +--- srclib/apr/threadproc/unix/procsup.c.orig Mon Apr 8 22:08:18 2002 ++++ srclib/apr/threadproc/unix/procsup.c Sun Jul 21 08:45:44 2002 +@@ -59,6 +59,7 @@ + int x; + + chdir("/"); ++#ifndef FREEBSD_THREAD_HACK + #if !defined(MPE) && !defined(OS2) && !defined(TPF) && !defined(BEOS) + /* Don't detach for MPE because child processes can't survive the death of + * the parent. */ +@@ -89,6 +90,7 @@ + if (setpgid(0, 0) == -1) { + return errno; + } ++#endif + #endif + + /* close out the standard file descriptors */ |