From: Maria Matejka Date: Wed, 12 Feb 2025 11:38:20 +0000 (+0100) Subject: Kernel: pause exports also on restart until scan is done X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bda2178ee04babcb8544d899ccc0d5f6c9e16934;p=thirdparty%2Fbird.git Kernel: pause exports also on restart until scan is done To save some time, exports are disabled to kernel when the initial scan is running. The same should happen when kernel protocol is restarting. --- diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index 81c073cfd..6b4f0521f 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -900,6 +900,10 @@ krt_start(struct proto *P) bmap_init(&p->seen_map, p->p.pool, 1024); add_tail(&krt_proto_list, &p->krt_node); + /* Disable exports until initial scan is done. + * This is needed if somebody happens to restart the kernel protocol. */ + p->p.rt_notify = NULL; + if (!krt_sys_start(p)) { rem_node(&p->krt_node);