mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
Make async_*_flag as global shared variables
This commit is contained in:
parent
daaa115943
commit
e96f1ea735
@ -2026,6 +2026,7 @@ watchdog_stop(void)
|
|||||||
|
|
||||||
volatile int async_config_flag; /* Asynchronous reconfiguration/dump scheduled */
|
volatile int async_config_flag; /* Asynchronous reconfiguration/dump scheduled */
|
||||||
volatile int async_dump_flag;
|
volatile int async_dump_flag;
|
||||||
|
volatile int async_shutdown_flag;
|
||||||
|
|
||||||
void
|
void
|
||||||
io_init(void)
|
io_init(void)
|
||||||
|
@ -30,6 +30,10 @@ extern char *bird_name;
|
|||||||
extern char *use_user;
|
extern char *use_user;
|
||||||
extern char *use_group;
|
extern char *use_group;
|
||||||
|
|
||||||
|
extern volatile int async_config_flag;
|
||||||
|
extern volatile int async_dump_flag;
|
||||||
|
extern volatile int async_shutdown_flag;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Origin 'static' functions from main.c
|
* Origin 'static' functions from main.c
|
||||||
*/
|
*/
|
||||||
|
@ -95,10 +95,6 @@ int sockaddr_read(sockaddr *sa, int af, ip_addr *a, struct iface **ifa, uint *po
|
|||||||
#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path))
|
#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
volatile int async_config_flag;
|
|
||||||
volatile int async_dump_flag;
|
|
||||||
volatile int async_shutdown_flag;
|
|
||||||
|
|
||||||
void io_init(void);
|
void io_init(void);
|
||||||
void io_loop(void);
|
void io_loop(void);
|
||||||
void io_log_dump(void);
|
void io_log_dump(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user