Misspelled variable names fixed.
This commit is contained in:
@@ -899,7 +899,7 @@ nxt_main_cleanup_worker_process(nxt_task_t *task, nxt_pid_t pid)
|
|||||||
|
|
||||||
port = nxt_process_port_first(process);
|
port = nxt_process_port_first(process);
|
||||||
|
|
||||||
if (nxt_proc_remove_notify_martix[ptype][port->type] == 0) {
|
if (nxt_proc_remove_notify_matrix[ptype][port->type] == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ nxt_port_send_new_port(nxt_task_t *task, nxt_runtime_t *rt,
|
|||||||
|
|
||||||
port = nxt_process_port_first(process);
|
port = nxt_process_port_first(process);
|
||||||
|
|
||||||
if (nxt_proc_conn_martix[port->type][new_port->type]) {
|
if (nxt_proc_conn_matrix[port->type][new_port->type]) {
|
||||||
(void) nxt_port_send_port(task, port, new_port, stream);
|
(void) nxt_port_send_port(task, port, new_port, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ nxt_pid_t nxt_pid;
|
|||||||
/* An original parent process pid. */
|
/* An original parent process pid. */
|
||||||
nxt_pid_t nxt_ppid;
|
nxt_pid_t nxt_ppid;
|
||||||
|
|
||||||
nxt_bool_t nxt_proc_conn_martix[NXT_PROCESS_MAX][NXT_PROCESS_MAX] = {
|
nxt_bool_t nxt_proc_conn_matrix[NXT_PROCESS_MAX][NXT_PROCESS_MAX] = {
|
||||||
{ 1, 1, 1, 1, 1 },
|
{ 1, 1, 1, 1, 1 },
|
||||||
{ 1, 0, 0, 0, 0 },
|
{ 1, 0, 0, 0, 0 },
|
||||||
{ 1, 0, 0, 1, 0 },
|
{ 1, 0, 0, 1, 0 },
|
||||||
@@ -26,7 +26,7 @@ nxt_bool_t nxt_proc_conn_martix[NXT_PROCESS_MAX][NXT_PROCESS_MAX] = {
|
|||||||
{ 1, 0, 0, 0, 0 },
|
{ 1, 0, 0, 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
nxt_bool_t nxt_proc_remove_notify_martix[NXT_PROCESS_MAX][NXT_PROCESS_MAX] = {
|
nxt_bool_t nxt_proc_remove_notify_matrix[NXT_PROCESS_MAX][NXT_PROCESS_MAX] = {
|
||||||
{ 0, 0, 0, 0, 0 },
|
{ 0, 0, 0, 0, 0 },
|
||||||
{ 0, 0, 0, 0, 0 },
|
{ 0, 0, 0, 0, 0 },
|
||||||
{ 0, 0, 0, 1, 0 },
|
{ 0, 0, 0, 1, 0 },
|
||||||
@@ -71,7 +71,7 @@ nxt_process_create(nxt_task_t *task, nxt_process_t *process)
|
|||||||
/* Remove not ready processes */
|
/* Remove not ready processes */
|
||||||
nxt_runtime_process_each(rt, p) {
|
nxt_runtime_process_each(rt, p) {
|
||||||
|
|
||||||
if (nxt_proc_conn_martix[ptype][nxt_process_type(p)] == 0) {
|
if (nxt_proc_conn_matrix[ptype][nxt_process_type(p)] == 0) {
|
||||||
nxt_debug(task, "remove not required process %PI", p->pid);
|
nxt_debug(task, "remove not required process %PI", p->pid);
|
||||||
|
|
||||||
nxt_process_close_ports(task, p);
|
nxt_process_close_ports(task, p);
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ typedef struct {
|
|||||||
} nxt_process_t;
|
} nxt_process_t;
|
||||||
|
|
||||||
|
|
||||||
extern nxt_bool_t nxt_proc_conn_martix[NXT_PROCESS_MAX][NXT_PROCESS_MAX];
|
extern nxt_bool_t nxt_proc_conn_matrix[NXT_PROCESS_MAX][NXT_PROCESS_MAX];
|
||||||
extern nxt_bool_t
|
extern nxt_bool_t
|
||||||
nxt_proc_remove_notify_martix[NXT_PROCESS_MAX][NXT_PROCESS_MAX];
|
nxt_proc_remove_notify_matrix[NXT_PROCESS_MAX][NXT_PROCESS_MAX];
|
||||||
|
|
||||||
NXT_EXPORT nxt_pid_t nxt_process_create(nxt_task_t *task,
|
NXT_EXPORT nxt_pid_t nxt_process_create(nxt_task_t *task,
|
||||||
nxt_process_t *process);
|
nxt_process_t *process);
|
||||||
|
|||||||
Reference in New Issue
Block a user