summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-10-04 12:20:02 +0200
committerMaria Matejka <mq@jmq.cz>2019-10-04 20:52:07 +0200
commit24493e9169d3058958ab3ec4d2b02c5753954981 (patch)
treec50c972dc4b0362ca77d9887ddc93a3372036653 /sysdep/unix/io.c
parent4821251ebb13c05e8752f6f54b8e5ad6d87fecaa (diff)
Fixed undefined behavior on signals.
The C11 specification allows only sig_atomic_t and _Atomic variable access. All other accesses to global variables are undefined behavior. Using int was probably OK on x86 and x86_64; yet there were some reports from other architectures (especially some MIPS) that in rare cases, after issuing SIGHUP, BIRD did strange things.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index c9fee3ab..5e4d9573 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -2154,10 +2154,6 @@ watchdog_stop(void)
* Main I/O Loop
*/
-volatile int async_config_flag; /* Asynchronous reconfiguration/dump scheduled */
-volatile int async_dump_flag;
-volatile int async_shutdown_flag;
-
void
io_init(void)
{