From c287a9811e85964065b437fd599f4da784b97675 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 13 Aug 2009 08:40:25 +0000 Subject: [PATCH] fix debug point for left open sockets --- src/os/unix/ngx_process_cycle.c | 7 ++++--- 1 file 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(); } }