FreeBSD Port: apache13-modssl-1.3.28+2.8.15

Erin Fortenberry efortenb at sdccd.cc.ca.us
Mon Aug 4 14:59:54 PDT 2003


I have been having zombie problems with apache/suexec.

>From this bug;

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21737


I tested the patch;

http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=7407

I know this is not an "official" patch, but it worked for me.

If anyone else has been having problems try it out.


The patch I installed ended up looking like this;


--- src/main/alloc.c.orig	Sun Jul 20 14:30:30 2003
+++ src/main/alloc.c	Sun Jul 20 14:33:50 2003
@@ -2860,7 +2860,14 @@
 	    || (p->kill_how == kill_only_once)) {
 	    /* Subprocess may be dead already.  Only need the timeout if
not. */
 	    if (ap_os_kill(p->pid, SIGTERM) == -1) {
-                p->kill_how = kill_never;
+		/* If the kill failed, find out why.  If the process does 
+		   not exist then we do not need to kill it.  */
+		if (errno == ESRCH) {			
+	                p->kill_how = kill_never;
+		}
+		else {
+			need_timeout = 1;
+		} 
             }
             else {
 		need_timeout = 1;


More information about the freebsd-ports mailing list