1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-24 15:46:51 +01:00
youtube-dl/youtube_dl
John Hawkinson 00ca755231 [get_exe_version] Do version probes with <&-
When doing version probes for ffmpeg, do the
equivalent of calling it as:

    ffmpeg -version <&-

Where <&- is shell syntax for closing stdin before calling the
program. This is roughly equivalent to </dev/null without actually
opening /dev/null.

This prevents ffmpeg -version from hanging when run in the background.
Fixes #955.

The reason is that ffmpeg tries to manipulate stdin to set up terminal
characteristic, and that causes the kernel to suspend the parent
process (youtube-dl).

Note that closing stdin is achieved by calling subprocess.Popen() with
stdin set to subprocess.PIPE and without passing any input to
Popen.communicate(). This is somewhat subtle.
2016-10-22 00:34:08 -04:00
..
downloader [downloader/common] Remove debug output 2016-10-12 21:22:33 +07:00
extractor [adobepass] PEP 8 2016-10-21 04:38:14 +07:00
postprocessor Revert "[postprocessor/embedthumbnail] Allow mkv to embed thumbnails" 2016-10-20 15:07:19 +08:00
__init__.py Unify coding cookie 2016-10-03 23:44:29 +07:00
__main__.py
aes.py
cache.py
compat.py [compat] Fix test_cmdline_umlauts on Python 2.6 2016-07-07 22:30:58 +08:00
jsinterp.py [jsinterp] Relax JS function regex (Closes #9863) 2016-06-23 09:41:34 +07:00
options.py [options] Actually print Adobe Pass options sections in --help 2016-09-15 22:18:31 +07:00
socks.py Fix misspelling 2016-06-26 01:28:55 +07:00
swfinterp.py
update.py [update] Fix youtube-dl.exe updating from arbitrary directory (Closes #2718) 2016-05-22 10:06:45 +06:00
utils.py [get_exe_version] Do version probes with <&- 2016-10-22 00:34:08 -04:00
version.py release 2016.10.21.1 2016-10-21 04:57:28 +07:00
YoutubeDL.py Unify coding cookie 2016-10-03 23:44:29 +07:00