diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-08-13 12:40:25 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-08-13 12:40:25 +0400 |
commit | c287a9811e85964065b437fd599f4da784b97675 (patch) | |
tree | 91c04c8daa97e24193c3e4b34a7c2a92c20dbbfb /src/os/unix/ngx_process_cycle.c | |
parent | 45ec56bdca48cd9594104642571d930824992019 (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.c | 7 |
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(); } } |