proc_info * ti = dummy;
int child_slot = ti->slot;
apr_pool_t *tpool = ti->tpool;
+ apr_allocator_t *allocator;
apr_socket_t *csd = NULL;
apr_pool_t *ptrans; /* Pool for per-transaction stuff */
apr_socket_t *sd = NULL;
sigfillset(&sig_mask);
sigprocmask(SIG_BLOCK, &sig_mask, NULL);
- apr_pool_create_ex(&ptrans, tpool, NULL, APR_POOL_FNEW_ALLOCATOR);
+ apr_allocator_create(&allocator);
+ apr_pool_create_ex(&ptrans, tpool, NULL, allocator);
+ apr_allocator_set_owner(ptrans);
+
apr_pool_tag(ptrans, "transaction");
apr_lock_acquire(worker_thread_count_mutex);
ap_listen_rec *lr;
ap_listen_rec *last_lr = NULL;
apr_pool_t *ptrans;
+ apr_allocator_t *allocator;
conn_rec *current_conn;
apr_status_t stat = APR_EINIT;
int worker_num_arg = (int)arg;
tv.tv_sec = 1;
tv.tv_usec = 0;
- apr_pool_create_ex(&ptrans, NULL, NULL, APR_POOL_FNEW_ALLOCATOR);
+ apr_allocator_create(&allocator);
+ apr_pool_create_ex(&ptrans, NULL, NULL, allocator);
+ apr_allocator_set_owner(allocator, ptrans);
+
apr_pool_tag(ptrans, "transaction");
apr_thread_mutex_lock(worker_thread_count_mutex);
static void child_main(int child_num_arg)
{
apr_pool_t *ptrans;
+ apr_allocator_t *allocator;
conn_rec *current_conn;
apr_status_t status = APR_EINIT;
int i;
/* Get a sub context for global allocations in this child, so that
* we can have cleanups occur when the child exits.
*/
- apr_pool_create_ex(&pchild, pconf, NULL, APR_POOL_FNEW_ALLOCATOR);
+ apr_allocator_create(&allocator);
+ apr_pool_create_ex(&pchild, pconf, NULL, allocator);
+ apr_allocator_set_owner(allocator, pchild);
apr_pool_create(&ptrans, pchild);
apr_pool_tag(ptrans, "transaction");
if (!workers_may_exit) {
/* create a new transaction pool for each accepted socket */
if (recycled_pool == NULL) {
- apr_pool_create_ex(&ptrans, NULL, NULL, APR_POOL_FNEW_ALLOCATOR);
+ apr_allocator_t *allocator;
+
+ apr_allocator_create(&allocator);
+ apr_pool_create_ex(&ptrans, NULL, NULL, allocator);
+ apr_allocator_set_owner(allocator, ptrans);
}
else {
ptrans = recycled_pool;