aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-16 19:37:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-03 19:02:43 +0100
commitcb7579ae6f241b3048813cd82ed60d9eeb34bca0 (patch)
tree571d92b5788a9ea751f077e1e9b35cd7e7596e5b
parent5341734b03a178d6eef66ec9d6caabdebe8164ae (diff)
downloadffmpeg-cb7579ae6f241b3048813cd82ed60d9eeb34bca0.tar.gz
ffmpeg: exit() on repeated ctrl-c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit cf7076ee9685d1ae35f2838904574e8aba3b067d) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 91c5269f30..e37f75b78e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -549,6 +549,8 @@ static void sigterm_handler(int sig)
received_sigterm = sig;
received_nb_signals++;
term_exit();
+ if(received_nb_signals > 3)
+ exit(123);
}
static void term_init(void)