mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
ffmpeg: dont call exit_program() from a signal hander
This is unsafe and can deadlock amongth other things Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6d25e90262
commit
9dca02ee54
1 changed files with 1 additions and 1 deletions
2
ffmpeg.c
2
ffmpeg.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue