Added basic port error handler.

This commit is contained in:
Max Romanov
2017-08-02 13:36:29 +03:00
parent f23f985899
commit b150f07e80
8 changed files with 81 additions and 40 deletions

View File

@@ -1386,7 +1386,8 @@ nxt_router_thread_start(void *data)
engine->mem_pool = nxt_mp_create(4096, 128, 1024, 64);
port = nxt_port_new(nxt_port_get_next_id(), nxt_pid, NXT_PROCESS_ROUTER);
port = nxt_port_new(task, nxt_port_get_next_id(), nxt_pid,
NXT_PROCESS_ROUTER);
if (nxt_slow_path(port == NULL)) {
return;
}