Skip to content

Conversation

@arrowd
Copy link
Contributor

@arrowd arrowd commented Aug 30, 2025

The parameter being acted on by sysctl() call is determined by an arbitrarily sized array of integers called MIB. The current version of the code only prints the first element of the MIB, which isn't descriptive at all. This change tries to print 4 elements, which should be enough for most of sysctls in the wild.

While there, make type signatures of low-level functions match their C versions.

The problem was raised by a FreeBSD user:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289022

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 30, 2025
@arrowd
Copy link
Contributor Author

arrowd commented Aug 30, 2025

@sec @Thefrank

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Aug 30, 2025
@jkotas jkotas added os-freebsd FreeBSD OS area-System.Diagnostics.Process and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Aug 30, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

LGTM, but I'll wait for @jkotas to re-review before we merge.

@jeffhandley jeffhandley self-assigned this Sep 2, 2025
The parameter being acted on by sysctl() call is determined by an arbitrarily
sized array of integers called MIB. The current version of the code only
prints the first element of the MIB, which isn't descriptive at all. Change it
to print all elements of the MIB tuple.

While there, make type signatures of low-level functions match their C versions.

The problem was raised by a FreeBSD user:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289022
@jkotas
Copy link
Member

jkotas commented Sep 3, 2025

/ba-g known issues + timeouts

@jkotas jkotas merged commit e3caf9f into dotnet:main Sep 3, 2025
141 of 144 checks passed
@jkotas
Copy link
Member

jkotas commented Sep 3, 2025

Thank you!

@arrowd
Copy link
Contributor Author

arrowd commented Sep 4, 2025

Thank you too @jkotas for picking this up!

@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Diagnostics.Process community-contribution Indicates that the PR has been added by a community member os-freebsd FreeBSD OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants