Commit 1bcdac2d authored by rogerdpack's avatar rogerdpack Committed by Michael Niedermayer

ffmpeg: log error message when shutting down from too many signals

write() suggested by wm4
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d5a36edd
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment