Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2003 14:59:41 -0700 
From:      Erin Fortenberry <efortenb@sdccd.cc.ca.us>
To:        "'ports@FreeBSD.org'" <ports@FreeBSD.org>
Cc:        "'ports@FreeBSD.org'" <ports@FreeBSD.org>
Subject:   FreeBSD Port: apache13-modssl-1.3.28+2.8.15
Message-ID:  <BBDEEDD2EB67D311A0240008C74B93453A960D@ntxmidcity.sdccd.cc.ca.us>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BBDEEDD2EB67D311A0240008C74B93453A960D>