From: Maria Matejka Date: Wed, 2 Oct 2024 20:42:11 +0000 (+0200) Subject: Flock: Even more fd cleanupc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2594db9acf0e6032cad33cf7c3b2f3dbaead0a78;p=thirdparty%2Fbird.git Flock: Even more fd cleanupc --- diff --git a/flock/container.c b/flock/container.c index 8634f3678..74457036b 100644 --- a/flock/container.c +++ b/flock/container.c @@ -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 = { diff --git a/flock/hypervisor.c b/flock/hypervisor.c index 50fff418d..8513b0802 100644 --- a/flock/hypervisor.c +++ b/flock/hypervisor.c @@ -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); }