Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrogerdpack <rogerpack2005@gmail.com>2015-06-25 13:22:10 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-25 13:23:29 +0300
commit1bcdac2da3ca228d9ba2334e26fa314e2abd45b2 (patch)
treec84cdf0201b7be68ed76fd938eb3bf1d2feda1a7 /ffmpeg.c
parentd5a36edda437d2931c019eb546d2bdfd02efd948 (diff)
ffmpeg: log error message when shutting down from too many signals
write() suggested by wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 1cf4487592..fae5f0f08c 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)