-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 Support for Process's ParentProcessId on FreeBSD #28679
Comments
/cc: @tmds @danmosemsft |
do you have simple code to run to reproduce this @bgribaudo ? |
Off the top of my head, maybe just try calling |
I think this FreeBSD implementation will fill the gap: https://github.com/am11/corefx/commit/fe9254b980ae777a0d7c08b6290b1026259cec86. I didn't open a pull request due to the blocker that we are unable to build CoreFX on FreeBSD; hitting package restore errors (https://github.com/dotnet/corefx/issues/2046#issuecomment-481739054). If building CoreFX via source-build is a viable option with release/3.0 branch, I can attempt @wfurt, @dagood (on a private VM for now). Otherwise, we can park it until the whole |
Thanks for working on this, @am11! It will be nice to see this supported on another platform. |
I would probably add ppid to proc_stats instead of dragging unsafe code to Process.cs. I'll see what I can do about the build. It would be nice to have it back. |
Agree, your approach is much cleaner @wfurt: https://github.com/am11/corefx/commit/871cf28?w=1 |
The property was implemented in master branch, can be closed. |
Thanks @am11 |
Request/Need
Implement private instance method
Process.ParentProcessId
method on FreeBSD. Presumably this will involve adding an interop method that calls the appropriate native API method.Background
Currently, this method is not supported on FreeBSD (e.g. throws a
PlatformNotSupportedException
). This lack blocksKill(entireProcessTree: true)
from being supported on FreeBSD.Related: dotnet/corefx#34147 (comment)
The text was updated successfully, but these errors were encountered: