Commit 9dca02ee authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: dont call exit_program() from a signal hander

This is unsafe and can deadlock amongth other things
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6d25e902
......@@ -328,7 +328,7 @@ sigterm_handler(int sig)
received_nb_signals++;
term_exit_sigsafe();
if(received_nb_signals > 3)
exit_program(123);
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