0
0
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:
Pavel Tvrdík 2015-08-19 14:44:14 +02:00
parent daaa115943
commit e96f1ea735
3 changed files with 5 additions and 4 deletions

View File

@ -2026,6 +2026,7 @@ watchdog_stop(void)
volatile int async_config_flag; /* Asynchronous reconfiguration/dump scheduled */
volatile int async_dump_flag;
volatile int async_shutdown_flag;
void
io_init(void)

View File

@ -30,6 +30,10 @@ extern char *bird_name;
extern char *use_user;
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
*/

View File

@ -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))
#endif
volatile int async_config_flag;
volatile int async_dump_flag;
volatile int async_shutdown_flag;
void io_init(void);
void io_loop(void);
void io_log_dump(void);