diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 19:37:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 19:02:43 +0100 |
commit | cb7579ae6f241b3048813cd82ed60d9eeb34bca0 (patch) | |
tree | 571d92b5788a9ea751f077e1e9b35cd7e7596e5b | |
parent | 5341734b03a178d6eef66ec9d6caabdebe8164ae (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |