Make multiple Ctrl-C capable to kill stuck protocols.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Mar 2011 01:26:49 +0000 (02:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Mar 2011 01:26:49 +0000 (02:26 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index f3680df..821a711 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -433,6 +433,7 @@ static void
 sigterm_handler(int sig)
 {
     received_sigterm = sig;
+    q_pressed++;
     term_exit();
 }