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
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-08-13 12:40:25 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-08-13 12:40:25 +0400
commitc287a9811e85964065b437fd599f4da784b97675 (patch)
tree91c04c8daa97e24193c3e4b34a7c2a92c20dbbfb /src/os/unix/ngx_process_cycle.c
parent45ec56bdca48cd9594104642571d930824992019 (diff)
fix debug point for left open sockets
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r--src/os/unix/ngx_process_cycle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index a246924dd..c923209d4 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -1017,13 +1017,14 @@ ngx_worker_process_exit(ngx_cycle_t *cycle)
&& !c[i].read->resolver)
{
ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
- "open socket #%d left in connection %ui%s",
- c[i].fd, i, ngx_debug_quit ? ", aborting" : "");
- ngx_debug_point();
+ "open socket #%d left in connection %ui",
+ c[i].fd, i);
+ ngx_debug_quit = 1;
}
}
if (ngx_debug_quit) {
+ ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "aborting");
ngx_debug_point();
}
}