[FFmpeg-cvslog] ffmpeg: exit() on repeated ctrl-c

Michael Niedermayer git at videolan.org
Fri Dec 16 21:00:13 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 16 19:37:32 2011 +0100| [cf7076ee9685d1ae35f2838904574e8aba3b067d] | committer: Michael Niedermayer

ffmpeg: exit() on repeated ctrl-c

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf7076ee9685d1ae35f2838904574e8aba3b067d
---

 ffmpeg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index f151e84..aa90fe6 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)



More information about the ffmpeg-cvslog mailing list