Uh oh!
There was an error while loading. Please reload this page.
SunOS process and thread support - #105403
Conversation
am11
commented
Jul 24, 2024
Lets drop the changes which are already submitted in other PRs. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
am11
commented
Jul 24, 2024
Good start! I've left initial feedback, which I anticipate the maintainers will point out. :) |
gwr
commented
Jul 24, 2024
Thanks. I had not yet seen #105207 when I opened this. I think @AustinWise and I should figure out how to get the prerequisite fixes shown there (and here) all integrated, and then I'll rebase the last parts of this onto that. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gwr
commented
Jul 24, 2024
I'd love to, but I do not see a way to do "stacked" PRs, where one PR targets the branch of another PR. |
am11
commented
Jul 24, 2024
Create a local branch |
jeffhandley
commented
Jan 14, 2026
@gwr It looks like there are just a couple of comments still to resolve from Jan's review back in September. Can you address these comments please? |
gwr
commented
Jan 17, 2026
Yes, sorry, I've been busy with some other things. Will do. |
Read /proc (binary) psinfo for System.Diagnostic.Process using src/native/libs/System.Native C functions. Add native/libs/System.Native/pal_io.c etc. Add src/libraries/Common/src/Interop/SunOS/procfs Add src/libraries/System.Diagnostics.Process Co-authored-by: Austin Wise <AustinWise@gmail.com> Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
This code didn't build for me anymore without updating to a later base. I also still need this Workaround #116929 but I've left it out of this PR. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
All the new SunOS Interop.* functions now return void instead of bool. Hm. Changing all those Interop. functions from bool to void return means: (1) this code diverges from the Linux code we based it on, and (2) consumer call sites need to deal with exceptions for normal errors (like no such process) in addition to the usual exceptions for unexpected problems (bugs). |
jkotas
commented
Jan 18, 2026
I have commented on method signature since it does not make sense to have internal bool-returning method that always returns true (without further explanation). If I am reading the code correctly, the equivalent Linux methods return false when the PID no longer exists. If it helps with code sharing, it is fine to return bool to match Linux. The behavior should either match Linux (ie return false in situations where Linux return false), or there should be a comment why the behavior does not match and why it is fine. |
Thanks. The interop functions were coded to throw exceptions only becase some code I copied from FreeBSD was written that way. There's no need for that in this code; |
Uh oh!
There was an error while loading. Please reload this page.
…etThreadInfoById.cs
Uh oh!
There was an error while loading. Please reload this page.
Read binary psinfo for System.Diagnostic.Process on SunOS (Solaris or illumos). No failures in System.Diagnostic.Process.Tests (but lots of skip) --------- Co-authored-by: Austin Wise <AustinWise@gmail.com> Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
gwr
commented
Jan 19, 2026
Thanks for all the help! 🙏 |
Read binary psinfo for System.Diagnostic.Process on SunOS (Solaris or illumos).
No failures in System.Diagnostic.Process.Tests (but lots of skip)
BTW, I tried rebasing on main from Mon. this week and ran into problems downloading stuff.
Not sure why, but it didn't seem to have anything to do with my changes.