0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Fixes to root pool and meta loop to allow resource dumps

This commit is contained in:
Maria Matejka 2023-11-01 18:23:43 +01:00
parent 15d890e87b
commit 796f0af0cc
2 changed files with 3 additions and 0 deletions

View File

@ -336,6 +336,7 @@ resource_init(void)
rcu_init();
resource_sys_init();
root_pool.r.class = &pool_class;
rp_init(&root_pool, the_bird_domain.the_bird, "Root");
tmp_init(&root_pool, the_bird_domain.the_bird);
}

View File

@ -892,6 +892,7 @@ bird_thread_main(void *arg)
bird_thread_busy_update(thr, timeout);
account_to(&this_thread->idle);
birdloop_leave(thr->meta);
poll_retry:;
int rv = poll(pfd.pfd.data, pfd.pfd.used, timeout);
if (rv < 0)
@ -902,6 +903,7 @@ poll_retry:;
}
account_to(&this_thread->overhead);
birdloop_enter(thr->meta);
/* Drain wakeup fd */
if (pfd.pfd.data[0].revents & POLLIN)