0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Shutdown marker displaced to runtime

This commit is contained in:
Maria Matejka 2024-08-28 15:29:07 +02:00
parent 386134d8e1
commit 03a87c4f7c
3 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,6 @@ static void config_done(void);
static timer *config_timer; /* Timer for scheduled configuration rollback */ static timer *config_timer; /* Timer for scheduled configuration rollback */
/* These are public just for cmd_show_status(), should not be accessed elsewhere */ /* 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 configuring; /* Reconfiguration is running */
int undo_available; /* Undo was not requested from last reconfiguration */ int undo_available; /* Undo was not requested from last reconfiguration */
/* Note that both shutting_down and undo_available are related to requests, not processing */ /* Note that both shutting_down and undo_available are related to requests, not processing */

View File

@ -9,6 +9,8 @@
#include "lib/runtime.h" #include "lib/runtime.h"
int shutting_down = 0;
struct global_runtime global_runtime_initial = { struct global_runtime global_runtime_initial = {
.tf_log = { .tf_log = {
.fmt1 = "%F %T.%3f", .fmt1 = "%F %T.%3f",

View File

@ -9,6 +9,10 @@
#include "lib/timer.h" #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 */ /* I/O loops log information about task scheduling */
enum latency_debug_flags { enum latency_debug_flags {
DL_PING = 1, DL_PING = 1,