summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mem_pool_cleanup.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-03-09 18:03:27 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-03-09 18:03:27 +0300
commit6f2c9acd1841ca20a1388b34aef64e9f00459090 (patch)
treec0b9c1063ec464027d1ca29a793f6c0b7a6878d5 /src/nxt_mem_pool_cleanup.c
parent5745e4826427155e29c1d520fe77811a0f570689 (diff)
downloadunit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.gz
unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.bz2
Processes refactoring.
The cycle has been renamed to the runtime.
Diffstat (limited to 'src/nxt_mem_pool_cleanup.c')
-rw-r--r--src/nxt_mem_pool_cleanup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_mem_pool_cleanup.c b/src/nxt_mem_pool_cleanup.c
index febfc959..ceafc9c8 100644
--- a/src/nxt_mem_pool_cleanup.c
+++ b/src/nxt_mem_pool_cleanup.c
@@ -7,7 +7,7 @@
#include <nxt_main.h>
-static void nxt_mem_pool_file_cleanup_handler(void *data);
+static void nxt_mem_pool_file_cleanup_handler(nxt_task_t *task, void *data);
nxt_mem_pool_cleanup_t *
@@ -27,13 +27,13 @@ nxt_mem_pool_file_cleanup(nxt_mem_pool_t *mp, nxt_file_t *file)
static void
-nxt_mem_pool_file_cleanup_handler(void *data)
+nxt_mem_pool_file_cleanup_handler(nxt_task_t *task, void *data)
{
nxt_file_t *file;
file = data;
if (file->fd != NXT_FILE_INVALID) {
- nxt_file_close(file);
+ nxt_file_close(task, file);
}
}