mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[utils] Clarify for redirecting STDIN in get_exe_version()
This commit is contained in:
		| @@ -1818,6 +1818,9 @@ def get_exe_version(exe, args=['--version'], | |||||||
|     """ Returns the version of the specified executable, |     """ Returns the version of the specified executable, | ||||||
|     or False if the executable is not present """ |     or False if the executable is not present """ | ||||||
|     try: |     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-209789656 | ||||||
|         out, _ = subprocess.Popen( |         out, _ = subprocess.Popen( | ||||||
|             [encodeArgument(exe)] + args, |             [encodeArgument(exe)] + args, | ||||||
|             stdin=subprocess.PIPE, |             stdin=subprocess.PIPE, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan