kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0364cc893c1d37321b6af81f83d3fc3d14f27a52
parent 8aaf7866c8dd8b22808fc9bbac737ec48b3facf3
Author: Joris Vink <joris@coders.se>
Date:   Mon,  6 Mar 2017 10:55:25 +0100

Write new rand_file immediately at startup.

Diffstat:
src/keymgr.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/keymgr.c b/src/keymgr.c @@ -66,6 +66,7 @@ kore_keymgr_run(void) if (rand_file != NULL) { keymgr_load_randfile(); + keymgr_save_randfile(); } else { kore_log(LOG_WARNING, "no rand_file location specified"); } @@ -131,8 +132,6 @@ kore_keymgr_cleanup(void) if (initialized == 0) return; - keymgr_save_randfile(); - for (key = TAILQ_FIRST(&keys); key != NULL; key = next) { next = TAILQ_NEXT(key, list); TAILQ_REMOVE(&keys, key, list);