From: Pavel TvrdĂ­k Date: Wed, 19 Aug 2015 12:44:14 +0000 (+0200) Subject: Make async_*_flag as global shared variables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96f1ea735340a8b1788a500087b890dc50043d0;p=thirdparty%2Fbird.git Make async_*_flag as global shared variables --- diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 0724667d1..78faa186e 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -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) diff --git a/sysdep/unix/main_helper.h b/sysdep/unix/main_helper.h index d08418e17..3beea1dc2 100644 --- a/sysdep/unix/main_helper.h +++ b/sysdep/unix/main_helper.h @@ -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 */ diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 4e0ff8411..a5c117618 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -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);