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:
parent
8cbbb17f79
commit
e74a3af6d2
@ -403,6 +403,10 @@ container_mainloop(int fd)
|
|||||||
|
|
||||||
container_init_logger();
|
container_init_logger();
|
||||||
|
|
||||||
|
/* Run worker threads */
|
||||||
|
struct thread_config tc = {};
|
||||||
|
bird_thread_commit(&tc);
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
struct pollfd pfd = {
|
struct pollfd pfd = {
|
||||||
|
@ -407,6 +407,7 @@ hexp_cleanup_after_fork(void)
|
|||||||
{
|
{
|
||||||
birdloop_enter(he.loop);
|
birdloop_enter(he.loop);
|
||||||
rp_free(he.p);
|
rp_free(he.p);
|
||||||
|
rem_node((node *) he.loop); /* FIXME: this is terrible but i'm lazy now */
|
||||||
birdloop_leave(he.loop);
|
birdloop_leave(he.loop);
|
||||||
birdloop_free(he.loop);
|
birdloop_free(he.loop);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user