summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 20:52:25 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 20:52:25 +0000
commit2dd92fea669cdd34b15cf75455ca7766b5cf9c93 (patch)
tree18ef26434bfc612d4dc32ad950ab4b4a96e50bd1
parentf638b9c31aab9b90b8b9b4dbea79f8a588037498 (diff)
Mark variables modified in signal handlers as volatile (part of Sun bug idXORG-6_8_99_16
-rw-r--r--difs/dispatch.c4
-rw-r--r--include/globals.h4
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;