Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cygwin + Ctrl-C doesn't cancel the script #1978
Comments
|
Update. I found a way how to make it work. Curl-downloaded youtube-dl is using cygwin's /bin/python. |
Hi,
I am aware of #481 , but it doesn't help me.
I am trying to kill youtube-dl by pressing CTRL-C. It works in windows cmd console, but it does not work in cygwin mintty console.
I have python installed not from cygwin, but as usual windows version.
My OS: windows 7 (x64)
Cygwin: 2.831 (32 bit)
Python version: Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
youtube-dl version: 2013.12.11.2
youtube-dl was installed with pip help: pip install --upgrade youtube_dl
Sample:
youtube-dl http://www.youtube.com/watch?v=sao5-VCcRkQ
or
youtube-dl "http://www.youtube.com/watch?v=sao5-VCcRkQ"
or
youtube-dl 'http://www.youtube.com/watch?v=sao5-VCcRkQ'
It creates 3 processes ( ps -W | grep -i python ):
12004 3992 12004 8940 pty0 1000 20:01:53 /cygdrive/d/Python27/Scripts/youtube-dl
12004 3992 12004 8940 pty0 1000 20:01:53 /cygdrive/d/Python27/Scripts/youtube-dl
12084 0 0 12084 ? 0 20:01:54 D:\Python27\python.exe
When I press CTRL-C youtube-dl ( PID = 12004 ) process is terminated, but python (PID = 12084 ) is still running and continue making text output.
I have to kill python manually with command "taskkill.exe /F /IM python.exe" from second mintty console.
help me please :-)