[FFmpeg-cvslog] ffmpeg: log error message when shutting down from too many signals
rogerdpack
git at videolan.org
Thu Jun 25 12:43:20 CEST 2015
ffmpeg | branch: master | rogerdpack <rogerpack2005 at gmail.com> | Thu Jun 25 12:22:10 2015 +0200| [1bcdac2da3ca228d9ba2334e26fa314e2abd45b2] | committer: Michael Niedermayer
ffmpeg: log error message when shutting down from too many signals
write() suggested by wm4
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1bcdac2da3ca228d9ba2334e26fa314e2abd45b2
---
ffmpeg.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 1cf4487..fae5f0f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -321,8 +321,11 @@ sigterm_handler(int sig)
received_sigterm = sig;
received_nb_signals++;
term_exit_sigsafe();
- if(received_nb_signals > 3)
+ if(received_nb_signals > 3) {
+ write(STDERR_FILENO, "Received > 3 system signals, hard exiting\n",
+ strlen("Received > 3 system signals, hard exiting\n"));
exit(123);
+ }
}
void term_init(void)
More information about the ffmpeg-cvslog
mailing list