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

Use setproctitle to sanitize ps info. #1605

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Feb 14, 2022

When the setproctitle distribution is part of a PEX's activated
distributions, use it to set the process title to include the PEX file
used to launch the application instead of the final unzipped or venv
directory in the PEX_ROOT.

Fixes #1604

When the setproctitle distribution is part of a PEX's activated
distributions, use it to set the process title to include the PEX file
used to launch the application instead of the final unzipped or venv
directory in the PEX_ROOT.

Fixes pex-tool#1604
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! Great docs.

I'm surprised macOS didn't give you more trouble this time 🙃

@jsirois
Copy link
Member Author

jsirois commented Feb 14, 2022

I have learned to reach for the bsd man pages (https://ss64.com/osx/ps.html) by now, so I was pretty sure the ps command would work, but, yeah, I was also ready to be burned.

@jsirois jsirois merged commit fac3766 into pex-tool:main Feb 14, 2022
@jsirois jsirois deleted the issues/1604 branch February 14, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be able to see what .pex file is run from the list of system processes
2 participants