From: William A. Rowe Jr Date: Tue, 5 Aug 2003 22:49:42 +0000 (+0000) Subject: Although we initialize mc->pid in the child init phase, X-Git-Tag: pre_ajp_proxy~1292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8606e3c92afa550ff6692db4176d5643fcf7cf3a;p=apache Although we initialize mc->pid in the child init phase, 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 --- diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 16c41e5474..3927ca180b 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -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 */