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

fix potential bug in building process tree on Win #5153

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Conversation

davidpanderson
Copy link
Contributor

client, win: when building the global process tree, don't make a parent->child link if the parent is newer than the child (this can happen in Win because a process's parentID isn't changed when its parent exits).
This prevents two potential problems:

  • when killing a runaway app, killing unrelated processes too
  • incorrect CPU time accounting

Fixes #5152

don't make a parent->child link if the parent is newer than the child
(this can happen in Win because a process's parentID isn't changed
when its parent exits).
This prevents two potential problems:
- when killing a runaway app, killing unrelated processes too
- incorrect CPU time accounting
Copy link
Member

@AenBleidd AenBleidd left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you for the fix

@AenBleidd AenBleidd merged commit 43a8830 into master Mar 17, 2023
@AenBleidd AenBleidd deleted the dpa_pid branch August 15, 2023 09:23
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.

Task descendants can be calculated incorrectly due to PID recycling on Windows
2 participants