A feature-rich command-line audio/video downloader
[utils] Clarify for redirecting STDIN in get_exe_version()
Yen Chi Hsuanb64d04c119cd
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex a89ff6908b..2770c5f1c5 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -1818,6 +1818,9 @@ def get_exe_version(exe, args=['--version'],""" Returns the version of the specified executable,or False if the executable is not present """try:+ # STDIN should be redirected too. On UNIX-like systems, ffmpeg triggers+ # SIGTTOU if youtube-dl is run in the background.+ # See https://github.com/rg3/youtube-dl/issues/955#issuecomment-209789656out, _ = subprocess.Popen([encodeArgument(exe)] + args,stdin=subprocess.PIPE,