]> git.kaiwu.me - nginx.git/commitdiff
add comment from r2716 commit message
authorIgor Sysoev <igor@sysoev.ru>
Tue, 17 Nov 2009 10:31:39 +0000 (10:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 17 Nov 2009 10:31:39 +0000 (10:31 +0000)
src/http/modules/perl/ngx_http_perl_module.c

index eb6407e21c9a66c710aae84d946137e7a0c4dac4..9cdd17551d2a96d472af5b323b7fcaec491e5b71 100644 (file)
@@ -1063,9 +1063,15 @@ ngx_http_perl_exit(ngx_cycle_t *cycle)
 {
 #if (NGX_HAVE_PERL_MULTIPLICITY)
 
+    /*
+     * the master exit hook is run before global pool cleanup,
+     * therefore just set flag here
+     */
+
     ngx_perl_term = 1;
 
 #else
+
     if (nginx_stash) {
         ngx_log_debug0(NGX_LOG_DEBUG_HTTP, cycle->log, 0, "perl term");