From e74a3af6d2e1ce3757b6907f30b057e26d949e49 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 2 Oct 2024 22:42:11 +0200 Subject: [PATCH] Flock: Even more fd cleanupc --- flock/container.c | 4 ++++ flock/hypervisor.c | 1 + 2 files changed, 5 insertions(+) diff --git a/flock/container.c b/flock/container.c index 8634f367..74457036 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 50fff418..8513b080 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); }