summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-08-13 02:46:54 +0300
committerValentin Bartenev <vbart@nginx.com>2020-08-13 02:46:54 +0300
commit93146616cf56a94fc2979cb978c7b451c5592594 (patch)
treedb840e75ef2c08731e699b4eb44641ad6639c2ca /src/nxt_runtime.c
parent21ac95f17e70f2f20fe8e2a99bbe9cc7328a6e62 (diff)
downloadunit-93146616cf56a94fc2979cb978c7b451c5592594.tar.gz
unit-93146616cf56a94fc2979cb978c7b451c5592594.tar.bz2
Basic variables support.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r--src/nxt_runtime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index 5f4b3e58..435276a0 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -124,6 +124,14 @@ nxt_runtime_create(nxt_task_t *task)
goto fail;
}
+ if (nxt_slow_path(nxt_http_register_variables() != NXT_OK)) {
+ goto fail;
+ }
+
+ if (nxt_slow_path(nxt_var_index_init() != NXT_OK)) {
+ goto fail;
+ }
+
nxt_work_queue_add(&task->thread->engine->fast_work_queue,
nxt_runtime_start, task, rt, NULL);