Skip to content

SystemNative_WaitPidExitedNoHang: ensure we don't report a child as exited in the unexpected case. - #135081

Open
tmds wants to merge 1 commit into
dotnet:mainfrom
tmds:waitpid-ptrace
Open

tmds wants to merge 1 commit into
dotnet:mainfrom
tmds:waitpid-ptrace

Conversation

@tmds

@tmds tmds commented Oct 2, 2026

Copy link
Copy Markdown
Member

When a user PInvokes ptrace attach on a child, .NET runtime may wrongly assume the child has exited.

Contributes to #133736.

…xited in the unexpected case.

When a user PInvokes ptrace attach on a child, .NET runtime may wrongly assume the child has exited.

Contributes to dotnet#133736.
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 2, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@adamsitnik adamsitnik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's simple and looks good, but we need a comment that explains the reasoning behind the change.

@tmds thank you!

else
{
assert(false);
result = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@tmds could you please add a comment explaining the reasoning behind this change?

Also apologies for not reviewing this PR any time sooner. For some wonderful reason, GH decided to not notify me.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants