summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_application.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c
index 49d785e8..2cd3c921 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -382,7 +382,18 @@ nxt_app_http_init(nxt_task_t *task, nxt_runtime_t *rt)
void
-nxt_port_app_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
+nxt_app_quit_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
+{
+ if (nxt_app->atexit != NULL) {
+ nxt_app->atexit(task);
+ }
+
+ nxt_worker_process_quit_handler(task, msg);
+}
+
+
+void
+nxt_app_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
{
size_t dump_size;
nxt_buf_t *b;