From 91b83f585a5cdc45a3fb83100b09a2fb9dacc02e Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Wed, 29 Sep 2010 00:15:14 -0700 Subject: [PATCH] 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). --- x264.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x264.c b/x264.c index d55247c6..cafba902 100644 --- a/x264.c +++ b/x264.c @@ -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); -- 2.39.2