diff options
author | ben <ben@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-03 17:50:37 +0000 |
---|---|---|
committer | ben <ben@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-03 17:50:37 +0000 |
commit | b160cdad907e1027cf994d7051718058b561cfd3 (patch) | |
tree | 1378d5d765345e9ddccc25f0a919ccd9be13b218 /threadproc | |
parent | db1cc1627da5788db0d5969139756555711d0d2e (diff) | |
download | libapr-b160cdad907e1027cf994d7051718058b561cfd3.tar.gz |
Make sure randomness is different after a fork.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64716 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r-- | threadproc/unix/proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c index ecfeddea3..e5fa9a0d1 100644 --- a/threadproc/unix/proc.c +++ b/threadproc/unix/proc.c @@ -56,6 +56,7 @@ #include "apr_strings.h" #include "apr_portable.h" #include "apr_signal.h" +#include "apr_random.h" APR_DECLARE(apr_status_t) apr_procattr_create(apr_procattr_t **new, apr_pool_t *pool) @@ -232,6 +233,8 @@ APR_DECLARE(apr_status_t) apr_proc_fork(apr_proc_t *proc, apr_pool_t *pool) proc->out = NULL; proc->err = NULL; + apr_random_after_fork(proc); + return APR_INCHILD; } |