ffmpeg: exit() on repeated ctrl-c
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 16 Dec 2011 18:37:32 +0000 (19:37 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jan 2012 18:02:43 +0000 (19:02 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit cf7076ee9685d1ae35f2838904574e8aba3b067d)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 91c5269..e37f75b 100644 (file)
--- 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)