1
0
Fork 0
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:
Jakob Flierl 2014-01-27 12:37:47 +01:00 committed by Andy Green
parent 67445557c2
commit af8694d203
3 changed files with 3 additions and 3 deletions

View file

@ -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;
/*

View file

@ -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"

View file

@ -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