Skip to content
Snippets Groups Projects
Commit 9dca02ee authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffmpeg: dont call exit_program() from a signal hander


This is unsafe and can deadlock amongth other things

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 6d25e902
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment