diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 19:37:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-16 19:37:32 +0100 |
commit | cf7076ee9685d1ae35f2838904574e8aba3b067d (patch) | |
tree | 1e84f4c95115cf9ac2d6c748a3cdec3828804a56 /ffmpeg.c | |
parent | 3d07e0aba0c9c29ed17a1becfae61b8b58f46cd1 (diff) | |
download | ffmpeg-cf7076ee9685d1ae35f2838904574e8aba3b067d.tar.gz |
ffmpeg: exit() on repeated ctrl-c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-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) |