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

Shouldn't running process name show "youtube-dl", not "python" #13577

Closed
bendover22 opened this issue Jul 6, 2017 · 2 comments
Closed

Shouldn't running process name show "youtube-dl", not "python" #13577

bendover22 opened this issue Jul 6, 2017 · 2 comments
Labels

Comments

@bendover22
Copy link

@bendover22 bendover22 commented Jul 6, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.02. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.07.02

Before submitting an issue make sure you have:

  • [x ] At least skimmed through README and most notably FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • [x ] Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.

More of a question, really.
In Linux System Monitor, or in NetStat output, the Youtube-dl running process name shows as "python", beside the PID and / or port number that YT-dl is using.

Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 127.0.0.1:40222 127.0.0.1:9150 ESTABLISHED 1000 320748 22379/python

Shouldn't it show the actual application name? I've never seen other application's running process name shown as 'C++' or 'Perl.'

If trying to verify which port YT-dl is using, or using a proxy correctly, etc., not showing the real process name makes it difficult to identify the correct process.

In Linux, there are many running processes with 'python' or 'py' - as part of the name.

Thanks.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 6, 2017

It should have been done in youtube_dl.utils.setproctitle(), but it's now partially broken due to unknown reasons. Only thread names are changed, so you need ps -eL or ps -eT to see it.

@yan12125 yan12125 added the bug label Jul 6, 2017
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 6, 2017

Hmmm seems it's impossible with pure Python. There was a patch to Python but rejected: https://mail.python.org/pipermail/python-list/2001-August/073640.html.
If CPython eventually adds this function, we can reopen this ticket.

@yan12125 yan12125 added external-bugs and removed bug labels Jul 6, 2017
@yan12125 yan12125 closed this Jul 6, 2017
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.