mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
make force_exit volatile.
Instruct the compiler to always access force_exit in memory.
This commit is contained in:
parent
eca0e4913d
commit
acd6e3b640
3 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ static int deny_deflate;
|
|||
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;
|
||||
|
||||
/*
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
#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"
|
||||
|
|
|
@ -58,7 +58,7 @@ int max_poll_elements;
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue