]> git.kaiwu.me - nginx.git/commitdiff
fix debug point for left open sockets
authorIgor Sysoev <igor@sysoev.ru>
Thu, 13 Aug 2009 08:40:25 +0000 (08:40 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 13 Aug 2009 08:40:25 +0000 (08:40 +0000)
src/os/unix/ngx_process_cycle.c

index a246924ddc145c547e3db6681b5b9f9cb3066fbe..c923209d4fba11ee1e251b5034a7ab6874546306 100644 (file)
@@ -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();
         }
     }