From: Bill Stoddard Date: Thu, 17 May 2001 12:10:22 +0000 (+0000) Subject: Fix a segfault in apr_proc_other_child_unregister. Jeff recently made X-Git-Tag: 2.0.18~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e7c9a7d886d97d3e2eecf11f950c66e760f3ed0;p=apache Fix a segfault in apr_proc_other_child_unregister. Jeff recently made a change in APR otherchild.c to unregister all OC registrations as part of pool cleanup. This means that we must NOT explicitly call apr_proc_other_child_unregister out of other pool clean-up routines. In this case, the OC cleanup was being called first then the piped_log_cleanup was being called which called apr_proc_other_child_unregister. We could fix this by detecting the case when there are no more OCs registered in apr_proc_other_child_unregister but that might just mask other problems we need to fix anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89133 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index 4ba0b4c6f3..a73abb0234 100644 --- a/server/log.c +++ b/server/log.c @@ -673,7 +673,6 @@ static apr_status_t piped_log_cleanup(void *data) if (pl->pid != NULL) { apr_proc_kill(pl->pid, SIGTERM); } - apr_proc_other_child_unregister(pl); apr_file_close(ap_piped_log_read_fd(pl)); apr_file_close(ap_piped_log_write_fd(pl)); return APR_SUCCESS;