diff options
author | Maria Matejka <mq@ucw.cz> | 2022-11-07 10:28:01 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-11-07 10:28:01 +0100 |
commit | 7bbd0b5a3b670cfbe72df21054465b71a632962f (patch) | |
tree | 5b1ca17e997224af1f5837b5ef2b1900366ea1dd /conf/conf.c | |
parent | 40bae8e1b788a535466ac673629fc93b6a258576 (diff) | |
parent | 37b644413723670928f6b54f2abe0c852eb0b652 (diff) |
Merge commit '37b64441' into thread-next
Diffstat (limited to 'conf/conf.c')
-rw-r--r-- | conf/conf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/conf/conf.c b/conf/conf.c index 17424402..f27147e5 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -61,6 +61,7 @@ static jmp_buf conf_jmpbuf; struct config *config, *new_config; +pool *config_pool; static struct config *old_config; /* Old configuration */ static struct config *future_config; /* New config held here if recon requested during recon */ @@ -89,7 +90,7 @@ int undo_available; /* Undo was not requested from last reconfiguration */ struct config * config_alloc(const char *name) { - pool *p = rp_new(&root_pool, "Config"); + pool *p = rp_new(config_pool, "Config"); linpool *l = lp_new_default(p); struct config *c = lp_allocz(l, sizeof(struct config)); @@ -489,10 +490,12 @@ config_timeout(timer *t UNUSED) void config_init(void) { - config_event = ev_new(&root_pool); + config_pool = rp_new(&root_pool, "Configurations"); + + config_event = ev_new(config_pool); config_event->hook = config_done; - config_timer = tm_new(&root_pool); + config_timer = tm_new(config_pool); config_timer->hook = config_timeout; } |