Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-02-28 23:31:33 +0300
committerIgor Sysoev <igor@sysoev.ru>2008-02-28 23:31:33 +0300
commit02aa53be8397f170f2db4b9039fe3e9fff933ca5 (patch)
tree75a83619f53a4e33ebab4c44b34ffe301067470d /src/os
parent7c4cf27aff2129adf7fc48b85a4e41c13bc34635 (diff)
left open sockets were not really tested
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix/ngx_process_cycle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 96387f04a..73b9d690a 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -994,18 +994,18 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
}
}
- if (ngx_quit) {
+ if (ngx_exiting) {
c = cycle->connections;
for (i = 0; i < cycle->connection_n; i++) {
if (c[i].fd != -1
&& c[i].read
&& !c[i].read->accept
- && !c[i].read->channel)
+ && !c[i].read->channel
+ && !c[i].read->resolver)
{
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
- "open socket #%d left in %ui connection, "
- "aborting",
- c[i].fd, i);
+ "open socket #%d left in %ui connection %s",
+ c[i].fd, i, ngx_debug_quit ? ", aborting" : "");
ngx_debug_point();
}
}