Fix SIGTTOU when used in background with -nostdin but no </dev/null. Signed-off-by: Nicolas George <geo...@nsup.org> --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c index 1887946..45a22fa 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -366,7 +366,7 @@ static BOOL WINAPI CtrlHandler(DWORD fdwCtrlType) void term_init(void) { #if HAVE_TERMIOS_H - if(!run_as_daemon){ + if(stdin_interaction && !run_as_daemon){ struct termios tty; if (tcgetattr (0, &tty) == 0) { oldtty = tty; -- 2.7.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel