0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Flock: Even more fd cleanupc

This commit is contained in:
Maria Matejka 2024-10-02 22:42:11 +02:00
parent 8cbbb17f79
commit e74a3af6d2
2 changed files with 5 additions and 0 deletions

View File

@ -403,6 +403,10 @@ container_mainloop(int fd)
container_init_logger();
/* Run worker threads */
struct thread_config tc = {};
bird_thread_commit(&tc);
while (1)
{
struct pollfd pfd = {

View File

@ -407,6 +407,7 @@ hexp_cleanup_after_fork(void)
{
birdloop_enter(he.loop);
rp_free(he.p);
rem_node((node *) he.loop); /* FIXME: this is terrible but i'm lazy now */
birdloop_leave(he.loop);
birdloop_free(he.loop);
}