summaryrefslogtreecommitdiffhomepage
path: root/src/python/nxt_python.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/nxt_python.c')
-rw-r--r--src/python/nxt_python.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/python/nxt_python.c b/src/python/nxt_python.c
index abb04194..8687c869 100644
--- a/src/python/nxt_python.c
+++ b/src/python/nxt_python.c
@@ -230,10 +230,9 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data)
}
}
- nxt_unit_default_init(task, &python_init);
+ nxt_unit_default_init(task, &python_init, data->app);
python_init.data = c;
- python_init.shm_limit = data->app->shm_limit;
python_init.callbacks.ready_handler = nxt_python_ready_handler;
proto = c->protocol;
@@ -522,18 +521,6 @@ nxt_python_ready_handler(nxt_unit_ctx_t *ctx)
nxt_py_thread_info_t *ti;
nxt_python_app_conf_t *c;
- if (nxt_py_proto.ready != NULL) {
- res = nxt_py_proto.ready(ctx);
- if (nxt_slow_path(res != NXT_UNIT_OK)) {
- return NXT_UNIT_ERROR;
- }
- }
-
- /* Worker thread context. */
- if (!nxt_unit_is_main_ctx(ctx)) {
- return NXT_UNIT_OK;
- }
-
c = ctx->unit->data;
if (c->threads <= 1) {