You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2021/06/03 18:31:15 UTC

svn commit: r1890441 - /httpd/httpd/trunk/server/mpm/prefork/prefork.c

Author: rpluem
Date: Thu Jun  3 18:31:15 2021
New Revision: 1890441

URL: http://svn.apache.org/viewvc?rev=1890441&view=rev
Log:
* We could get here again if a second thread deals with the
  signal as well. Should noit happen on prefork, but better
  safe than sorry.

Modified:
    httpd/httpd/trunk/server/mpm/prefork/prefork.c

Modified: httpd/httpd/trunk/server/mpm/prefork/prefork.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/prefork/prefork.c?rev=1890441&r1=1890440&r2=1890441&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/prefork/prefork.c (original)
+++ httpd/httpd/trunk/server/mpm/prefork/prefork.c Thu Jun  3 18:31:15 2021
@@ -226,6 +226,11 @@ static void clean_child_exit(int code)
 
     if (pchild) {
         apr_pool_destroy(pchild);
+        /*
+         * Be safe in case someone still uses afterwards or we get here again.
+         * Should not happen.
+         */
+        pchild = NULL;
     }
 
     if (one_process) {