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:
parent
386134d8e1
commit
03a87c4f7c
@ -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 */
|
||||||
|
@ -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",
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user