Commit 91b83f58 authored by Fiona Glaser's avatar Fiona Glaser
Browse files

Make sigint handler variable volatile

Didn't actually cause any problems, but is necessary because it can be modified by another thread (the signal call).
parent 47e26098
......@@ -56,9 +56,9 @@
#endif
/* Ctrl-C handler */
static int b_ctrl_c = 0;
static int b_exit_on_ctrl_c = 0;
static void SigIntHandler( int a )
static volatile int b_ctrl_c = 0;
static int b_exit_on_ctrl_c = 0;
static void SigIntHandler( int a )
{
if( b_exit_on_ctrl_c )
exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment