summaryrefslogtreecommitdiff
path: root/src/signals.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-04 21:34:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-04 21:34:14 +0100
commitbafc47fd575bb7878214deda3730efcb6c755770 (patch)
tree2bfa39bf4febb59710f9b9c48f2e335627eb0251 /src/signals.h
parent3fc148aecf9a5334a26752acf6b6d71819cbc2f4 (diff)
Declare sig_exit as volatile
sig_exit may be changed by a signal handler, so its value should always be read from RAM.
Diffstat (limited to 'src/signals.h')
-rw-r--r--src/signals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signals.h b/src/signals.h
index 090ab0b..38fc0d2 100644
--- a/src/signals.h
+++ b/src/signals.h
@@ -27,5 +27,5 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define SIGNALS_H
void setup_signal_handlers();
-extern int sig_exit;
+volatile extern int sig_exit;
#endif