]> granicus.if.org Git - apache/commitdiff
Although we initialize mc->pid in the child init phase,
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 5 Aug 2003 22:49:42 +0000 (22:49 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 5 Aug 2003 22:49:42 +0000 (22:49 +0000)
  we haven't initialized it before initially performing
  our ssl_rand_seed() in the parent/postconfig phase.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100912 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 16c41e547420c053dfd2f5a16f71edeb1ffcaf57..3927ca180ba0b55b41c550fbe202b0046ac23f8c 100644 (file)
@@ -200,6 +200,12 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
     SSLSrvConfigRec *sc;
     server_rec *s;
 
+    /* We initialize mc->pid per-process in the child init,
+     * but it should be initialized for startup before we
+     * call ssl_rand_seed() below.
+     */
+    mc->pid = getpid(); 
+
     /*
      * Let us cleanup on restarts and exists
      */