]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Shutdown marker displaced to runtime
authorMaria Matejka <mq@ucw.cz>
Wed, 28 Aug 2024 13:29:07 +0000 (15:29 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 23 Feb 2025 17:17:45 +0000 (18:17 +0100)
conf/conf.c
lib/runtime.c
lib/runtime.h

index 2002fe69fecb0b81a4237be831bfd4f16c418215..f15d90c30c291a84aa9d9746f5dcd99127a82252 100644 (file)
@@ -75,7 +75,6 @@ static void config_done(void);
 static timer *config_timer;            /* Timer for scheduled configuration rollback */
 
 /* These are public just for cmd_show_status(), should not be accessed elsewhere */
-int shutting_down;                     /* Shutdown requested, do not accept new config changes */
 int configuring;                       /* Reconfiguration is running */
 int undo_available;                    /* Undo was not requested from last reconfiguration */
 /* Note that both shutting_down and undo_available are related to requests, not processing */
index cf40c124f06b9fd46afd209a030ea362d975cdd7..f2507de9ccde0f88d1daf64cf1be0f69ff8b07a3 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "lib/runtime.h"
 
+int shutting_down = 0;
+
 struct global_runtime global_runtime_initial = {
   .tf_log = {
     .fmt1 = "%F %T.%3f",
index 455f89a803342508d40ccf233dda3600ff2f9649..450eb26afdacd9558231ac6defbc4826420f7d17 100644 (file)
@@ -9,6 +9,10 @@
 
 #include "lib/timer.h"
 
+/* Shutdown requested, behave accordingly.
+ * Initially zero, once set to one, never reset. */
+extern int shutting_down;
+
 /* I/O loops log information about task scheduling */
 enum latency_debug_flags {
   DL_PING = 1,