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:
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r--src/os/unix/ngx_process_cycle.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 9c5a7ee15..23589c997 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -632,7 +632,14 @@ ngx_master_exit(ngx_cycle_t *cycle)
ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0, "exit");
+ /*
+ * we do not destroy cycle->pool here because a signal handler
+ * that uses cycle->log can be called at this point
+ */
+
+#if 0
ngx_destroy_pool(cycle->pool);
+#endif
exit(0);
}
@@ -718,6 +725,10 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data)
* we do not destroy cycle->pool here because a signal handler
* that uses cycle->log can be called at this point
*/
+
+#if 0
+ ngx_destroy_pool(cycle->pool);
+#endif
exit(0);
}
@@ -736,6 +747,11 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data)
* we do not destroy cycle->pool here because a signal handler
* that uses cycle->log can be called at this point
*/
+
+#if 0
+ ngx_destroy_pool(cycle->pool);
+#endif
+
exit(0);
}