From 2dd92fea669cdd34b15cf75455ca7766b5cf9c93 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 16 Jul 2005 20:52:25 +0000 Subject: Mark variables modified in signal handlers as volatile (part of Sun bug id 4496504) --- difs/dispatch.c | 4 ++-- include/globals.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/difs/dispatch.c b/difs/dispatch.c index cc4b5b7..f1a0a85 100644 --- a/difs/dispatch.c +++ b/difs/dispatch.c @@ -71,8 +71,8 @@ in this Software without prior written authorization from The Open Group. static void kill_all_clients(void); -char dispatchException = 0; -char isItTimeToYield; +volatile char dispatchException = 0; +volatile char isItTimeToYield; ClientPtr currentClient; diff --git a/include/globals.h b/include/globals.h index 650bb55..678a7d9 100644 --- a/include/globals.h +++ b/include/globals.h @@ -60,8 +60,8 @@ extern int currentMaxClients; extern long MaxClients; extern int serverGeneration; -extern char isItTimeToYield; -extern char dispatchException; +extern volatile char isItTimeToYield; +extern volatile char dispatchException; extern int argcGlobal; extern char **argvGlobal; -- cgit v1.2.3