diff --git a/src/server/connections.c b/src/server/connections.c index 4c172f004e28aa7f53d1a5eb7359a091bd97e285..2f550444207115a4969c88b1d8a2ee60e32c6bc3 100644 --- a/src/server/connections.c +++ b/src/server/connections.c @@ -41,8 +41,8 @@ ISCMCB * kom_server_mcb = NULL; Connection * active_connection = NULL; -Bool go_and_die = FALSE; -Bool do_sync_db = FALSE; +volatile Bool go_and_die = FALSE; +volatile Bool do_sync_db = FALSE; jmp_buf parse_env; diff --git a/src/server/connections.h b/src/server/connections.h index 815ef3afda3404d404451548a7a6d2d4620f70c2..11a40cdf5e5c03d5e5a119ce03da214e570d1676 100644 --- a/src/server/connections.h +++ b/src/server/connections.h @@ -5,9 +5,9 @@ */ -extern Bool go_and_die; /* Set this to TRUE to kill the server. */ -extern Bool do_sync_db; /* Set this to TRUE to force a sync via - signal. */ +extern volatile Bool go_and_die; /* Set this to TRUE to kill the server. */ +extern volatile Bool do_sync_db; /* Set this to TRUE to force a sync via + signal. */ #define CONN_MAGIC_ALLOC 0x18F4AE74 #define CONN_MAGIC_FREE 0x67A7B144