From 2d28d3e880e71d6ac9838e08a6b0914191f57da4 Mon Sep 17 00:00:00 2001
From: rogerdpack <rogerpack2005@gmail.com>
Date: Wed, 24 Jun 2015 23:45:26 -0600
Subject: [PATCH 2/2] log error message when shutting down from too many

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
---
 ffmpeg.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 9858bb8..f5a16ae 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -324,8 +324,10 @@ sigterm_handler(int sig)
     received_sigterm = sig;
     received_nb_signals++;
     term_exit_sigsafe();
-    if(received_nb_signals > 3)
+    if(received_nb_signals > 3) {
+        fprintf(stderr, "Received > 3 system signals, hard exiting\n");
         exit(123);
+    }
 }
 
 #ifdef HAVE_SETCONSOLECTRLHANDLER
-- 
1.9.5.msysgit.0

