aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-21 15:45:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 16:18:39 +0200
commitf65501f80cbc2f251b6a50b881652acb64540fe0 (patch)
treeb4a4e0341159bf4ccfb1c6de35d6d8f355ce1baf
parent6387aa94d664ba2203834a04320c671be3f31eb7 (diff)
downloadffmpeg-f65501f80cbc2f251b6a50b881652acb64540fe0.tar.gz
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> (cherry picked from commit 9dca02ee541120de2a96c387faed9a4e033a60fd) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 01cfaea850..2a9bafda79 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -319,7 +319,7 @@ sigterm_handler(int sig)
received_nb_signals++;
term_exit();
if(received_nb_signals > 3)
- exit_program(123);
+ exit(123);
}
void term_init(void)