Latest update - 9207
This commit is contained in:
@@ -110,6 +110,8 @@ ngx_thread_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset,
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
task->event.log = file->log;
|
||||
|
||||
file->thread_task = task;
|
||||
}
|
||||
|
||||
@@ -493,6 +495,8 @@ ngx_thread_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset,
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
task->event.log = file->log;
|
||||
|
||||
file->thread_task = task;
|
||||
}
|
||||
|
||||
|
||||
@@ -332,6 +332,7 @@ ngx_linux_sendfile_thread(ngx_connection_t *c, ngx_buf_t *file, size_t size)
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
task->event.log = c->log;
|
||||
task->handler = ngx_linux_sendfile_thread_handler;
|
||||
|
||||
c->sendfile_task = task;
|
||||
|
||||
@@ -948,7 +948,7 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
|
||||
}
|
||||
}
|
||||
|
||||
if (ngx_exiting) {
|
||||
if (ngx_exiting && !ngx_terminate) {
|
||||
c = cycle->connections;
|
||||
for (i = 0; i < cycle->connection_n; i++) {
|
||||
if (c[i].fd != -1
|
||||
@@ -963,11 +963,11 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
|
||||
ngx_debug_quit = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ngx_debug_quit) {
|
||||
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "aborting");
|
||||
ngx_debug_point();
|
||||
}
|
||||
if (ngx_debug_quit) {
|
||||
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "aborting");
|
||||
ngx_debug_point();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -834,7 +834,7 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
|
||||
}
|
||||
}
|
||||
|
||||
if (ngx_exiting) {
|
||||
if (ngx_exiting && !ngx_terminate) {
|
||||
c = cycle->connections;
|
||||
for (i = 0; i < cycle->connection_n; i++) {
|
||||
if (c[i].fd != (ngx_socket_t) -1
|
||||
|
||||
Reference in New Issue
Block a user