I/O operations refactoring.

This commit is contained in:
Igor Sysoev
2017-02-22 15:09:59 +03:00
parent 059a864289
commit 029942f4eb
49 changed files with 1145 additions and 1216 deletions

View File

@@ -86,11 +86,9 @@ nxt_worker_process_start(void *data)
goto fail;
}
#if 0
if (nxt_cycle_listen_sockets_enable(thr, cycle) != NXT_OK) {
if (nxt_cycle_listen_sockets_enable(&thr->engine->task, cycle) != NXT_OK) {
goto fail;
}
#endif
proc = cycle->processes->elts;
@@ -159,7 +157,7 @@ nxt_worker_process_quit(nxt_task_t *task)
n = cycle->listen_sockets->nelts;
while (n != 0) {
nxt_socket_close(ls->socket);
nxt_socket_close(task, ls->socket);
ls->socket = -1;
ls++;