summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-07 16:01:34 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-07 16:01:34 +0300
commite58f4ef0d030f270c3ef2da7dcb891c961718372 (patch)
tree3d902bbe55b8edce47e8721edb2cf883bf600e95 /src/nxt_router.c
parente15b975e9d285f84535c7697f1d87568bfb08269 (diff)
downloadunit-e58f4ef0d030f270c3ef2da7dcb891c961718372.tar.gz
unit-e58f4ef0d030f270c3ef2da7dcb891c961718372.tar.bz2
Memory pool thread safety checks in DEBUG build and usage fixes.
Diffstat (limited to '')
-rw-r--r--src/nxt_router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 9753d289..a0c5a17d 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -926,6 +926,8 @@ nxt_router_thread_start(void *data)
thread->task = &engine->task;
thread->fiber = &engine->fibers->fiber;
+ nxt_mp_thread_adopt(engine->port->mem_pool);
+
engine->port->socket.task = task;
nxt_port_create(task, engine->port, nxt_router_app_port_handlers);