mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-09 09:39:57 +08:00
When the youtube-dl processes is killed, child processes like `ffmpeg` keep running in the background.
The solution is similiar to [the implementation of subprocess.call](75c1ca7b6c/Lib/subprocess.py (L250)
).
The problem doesn't arise when youtube-dl runs in a terminal and Ctrl+C is pressed, because the terminal sends SIGINT to all processes of the process group.
It becomes an issue when youtube-dl is started outside of a terminal or integrated into another program.