mirror of
https://github.com/apache/httpd.git
synced 2025-08-10 02:56:11 +00:00
call getpid() once at child init and save in the SSLModConfigRec
to avoid getpid() calls at request time PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92231 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -136,7 +136,7 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix)
|
||||
/*
|
||||
* seed in the current process id (usually just 4 bytes)
|
||||
*/
|
||||
pid = getpid();
|
||||
pid = mc->pid;
|
||||
l = sizeof(pid_t);
|
||||
RAND_seed((unsigned char *)&pid, l);
|
||||
nDone += l;
|
||||
|
Reference in New Issue
Block a user