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

processmanager: Fix process exit regression (#337) #338

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

christos68k
Copy link
Member

Summary

This fixes an issue introduced with dd4c52b.

@christos68k christos68k requested review from a team as code owners February 3, 2025 17:35
@christos68k christos68k self-assigned this Feb 3, 2025
@christos68k christos68k linked an issue Feb 3, 2025 that may be closed by this pull request
This fixes an issue introduced with dd4c52b.
// ProcessPIDExit may be called multiple times in short succession
// for the same PID, don't update exitKTime if we've previously recorded it.
if _, pidExitProcessed := pm.exitEvents[pid]; !pidExitProcessed {
if _, pidExitProcessed = pm.exitEvents[pid]; !pidExitProcessed {
Copy link
Contributor

Choose a reason for hiding this comment

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

Code coverage report shows that our unit tests doesn't cover this block of code. That needs to be improved.

Co-authored-by: Florian Lehner <[email protected]>
@rockdaboot rockdaboot merged commit 815fa42 into main Feb 5, 2025
25 checks passed
@rockdaboot rockdaboot deleted the ck/fix-exit branch February 5, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing pidPageToMappingInfo keys
3 participants