1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-07 00:37:10 +00:00

Integer variables referenced from a signal handler (XLocked, XNeedSignal) should be type sig_atomic_t

This commit is contained in:
Nick Briggs
2021-07-05 14:19:23 -07:00
parent 934b15b63b
commit 9ed46e6b69
4 changed files with 11 additions and 8 deletions

View File

@@ -11,6 +11,7 @@
#include "version.h"
#include <assert.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
@@ -62,7 +63,8 @@ unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight;
Colormap Colors;
int XLocked = 0; /* non-zero while doing X ops, to avoid signals */
volatile sig_atomic_t XLocked = 0; /* non-zero while doing X ops, to avoid signals */
volatile sig_atomic_t XNeedSignal = 0; /* T if an X interrupt happened while XLOCK asserted */
extern fd_set LispReadFds;
/************************************************************************/