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

Add additional process states #1185

Merged
merged 1 commit into from Nov 28, 2021
Merged

Conversation

tbarker25
Copy link
Contributor

In the move from v1 to v3, process states has changed from returning a single character for status to an enum. https://github.com/open-telemetry/opentelemetry-collector was depending on some of these states.

I've looked through the documentation for most platforms and ensured that we are capturing all the cases (FreeBSD, OpenBSD, Linux, Solaris, Darwin).

See tracking issue: #1171

Copy link
Owner

@shirou shirou left a comment

Choose a reason for hiding this comment

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

Great! Unfortunately, this function is used by only Linux and Darwin. Others like FreeBSD converts from kproc directly. But this PR provides room for extensions to FreeBSD and OpenBSD, and does not break compatibility. So LGTM! Thank you so much!!

@shirou shirou merged commit aa3378b into shirou:master Nov 28, 2021
@tbarker25 tbarker25 deleted the process-states branch November 29, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants