Instruct the compiler to always access force_exit in memory.
static int deny_mux;
static struct libwebsocket *wsi_mirror;
static int mirror_lifetime = 0;
-static int force_exit = 0;
+static volatile int force_exit = 0;
static int longlived = 0;
/*
#include "../lib/libwebsockets.h"
-int force_exit = 0;
+static volatile int force_exit = 0;
#define MAX_ECHO_PAYLOAD 1400
#define LOCAL_RESOURCE_PATH INSTALL_DATADIR"/libwebsockets-test-server"
struct pollfd *pollfds;
int *fd_lookup;
int count_pollfds;
-int force_exit = 0;
+static volatile int force_exit = 0;
/*
* This demo server shows how to use libwebsockets for one or more