diff options
author | rogerdpack <rogerpack2005@gmail.com> | 2015-06-25 12:22:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-25 12:23:29 +0200 |
commit | 1bcdac2da3ca228d9ba2334e26fa314e2abd45b2 (patch) | |
tree | c84cdf0201b7be68ed76fd938eb3bf1d2feda1a7 /ffmpeg.c | |
parent | d5a36edda437d2931c019eb546d2bdfd02efd948 (diff) | |
download | ffmpeg-streaming-1bcdac2da3ca228d9ba2334e26fa314e2abd45b2.zip ffmpeg-streaming-1bcdac2da3ca228d9ba2334e26fa314e2abd45b2.tar.gz |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |