-
Notifications
You must be signed in to change notification settings - Fork 3k
top: fallback to execing ps(1) #3034
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
top: fallback to execing ps(1) #3034
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
ping back to @vrotherber's radar |
|
Thanks a lot, @TomSweeneyRedHat! I didn't notice it was tagged for 1.3.0 (didn't receive an email for that). I will pick this up tomorrow morning :) |
|
☔ The latest upstream changes (presumably #2985) made this pull request unmergeable. Please resolve the merge conflicts. |
Fallback to executing ps(1) in case we hit an unknown psgo descriptor. This ensures backwards compatibility with docker-top, which was purely ps(1) driven. Also support comma-separated descriptors as input. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
|
Updated ✔️ @TomSweeneyRedHat @mheon @rhatdan PTAL FYI: the logic is now a bit simpler. If we hit |
|
I thought I read where @mheon suggested that we not document this behaviour? Or was that someone else? Or was I dreaming? |
|
@rhatdan, good point! I missed mentioning that I would not do that due to the inconsistent behavior of ps across linux distros, see the following example: I removed it from the help message but I vote for keeping it in the man pages. Otherwise, users have to figure out on their own whats going on which might not be the best experience. |
|
OK. |
Fallback to executing ps(1) in case we hit an unknown psgo descriptor.
This ensures backwards compatibility with docker-top, which was purely
ps(1) driven.
Also support comma-separated descriptors as input.
Signed-off-by: Valentin Rothberg rothberg@redhat.com