Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command to quit youtube-dl? #5631

Closed
Steveland opened this issue May 6, 2015 · 2 comments
Closed

command to quit youtube-dl? #5631

Steveland opened this issue May 6, 2015 · 2 comments

Comments

@Steveland
Copy link

@Steveland Steveland commented May 6, 2015

Hello,

Is there any command to quit the program while it's running (like 'q' letter for ffmpeg)?

I ask this because I'm working on a Windows program that uses youtube-dl as a child process, and it would be a convenient way to quit the program properly instead of making a TerminateProcess.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 6, 2015

@dstftw dstftw closed this May 6, 2015
@Steveland
Copy link
Author

@Steveland Steveland commented May 6, 2015

Thanks dstftw for the answer but I was already aware of the GenerateConsoleCtrlEvent function.

This function seems to be working for console programs only and I need a solution for a Win32 GUI program. I don't like the TerminateProcess function but I think it's my best option here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.