View | Details | Raw Unified | Return to bug 21737
Collapse All | Expand All

(-)apache_1.3.28/src/main/alloc.c.orig (-1 / +8 lines)
Lines 2860-2866 Link Here
2860
	    || (p->kill_how == kill_only_once)) {
2860
	    || (p->kill_how == kill_only_once)) {
2861
	    /* Subprocess may be dead already.  Only need the timeout if not. */
2861
	    /* Subprocess may be dead already.  Only need the timeout if not. */
2862
	    if (ap_os_kill(p->pid, SIGTERM) == -1) {
2862
	    if (ap_os_kill(p->pid, SIGTERM) == -1) {
2863
                p->kill_how = kill_never;
2863
		/* If the kill failed, find out why.  If the process does 
2864
		   not exist then we do not need to kill it.  */
2865
		if (errno == ESRCH) {			
2866
	                p->kill_how = kill_never;
2867
		}
2868
		else {
2869
			need_timeout = 1;
2870
		} 
2864
            }
2871
            }
2865
            else {
2872
            else {
2866
		need_timeout = 1;
2873
		need_timeout = 1;

Return to bug 21737