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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b235c167e2c94ba3d50932177ae526745966195f;p=thirdparty%2Fapache%2Fhttpd.git 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/modules/ssl@100912 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_init.c b/ssl_engine_init.c index 16c41e54742..3927ca180ba 100644 --- a/ssl_engine_init.c +++ b/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 */