diff options
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r-- | src/nxt_main_process.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 7de643ca..90c06a05 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -769,7 +769,8 @@ nxt_main_cleanup_worker_process(nxt_task_t *task, nxt_pid_t pid) port = nxt_process_port_first(process); - buf = nxt_buf_mem_alloc(port->mem_pool, sizeof(pid), 0); + buf = nxt_buf_mem_ts_alloc(task, task->thread->engine->mem_pool, + sizeof(pid)); buf->mem.free = nxt_cpymem(buf->mem.free, &pid, sizeof(pid)); nxt_port_socket_write(task, port, NXT_PORT_MSG_REMOVE_PID, @@ -836,7 +837,8 @@ nxt_main_port_socket_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) nxt_log(task, NXT_LOG_CRIT, "%*s", size, ls.start); - out = nxt_buf_mem_alloc(port->mem_pool, size + 1, 0); + out = nxt_buf_mem_ts_alloc(task, task->thread->engine->mem_pool, + size + 1); if (nxt_slow_path(out == NULL)) { return; } |