diff --git a/event.c b/event.c index 8220afa8..f2f9e83c 100644 --- a/event.c +++ b/event.c @@ -108,7 +108,7 @@ struct event_base *current_base = NULL; /* Handle signals - This is a deprecated interface */ int (*event_sigcb)(void); /* Signal callback when gotsig is set */ -int event_gotsig; /* Set in signal handler */ +volatile int event_gotsig; /* Set in signal handler */ /* Prototypes */ static void event_queue_insert(struct event_base *, struct event *, int);