Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-21 18:45:03 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-03-21 20:09:56 +0400
commit9dca02ee541120de2a96c387faed9a4e033a60fd (patch)
treea2966e8d6ed404fcc6c4017fa374cf5011b6c3a8 /ffmpeg.c
parent6d25e90262e377f10716c39116e2e42938e1fad2 (diff)
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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e66cf2e024..4b9209dd92 100644
--- a/ffmpeg.c
+++ b/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)