From 7c6a8afa7ea7fac599f81eb3c490e71e03944378 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 Mar 2014 15:45:03 +0100 Subject: [PATCH] ffmpeg: dont call exit_program() from a signal hander This is unsafe and can deadlock amongth other things Signed-off-by: Michael Niedermayer (cherry picked from commit 9dca02ee541120de2a96c387faed9a4e033a60fd) Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 332a2338cd..1d3cfd4c03 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -323,7 +323,7 @@ sigterm_handler(int sig) received_nb_signals++; term_exit(); if(received_nb_signals > 3) - exit_program(123); + exit(123); } void term_init(void)