Skip to content

fix: process_iter() no longer skips reused PIDs for one iteration - #2990

Open
TrueFurina wants to merge 1 commit into
giampaolo:masterfrom
TrueFurina:fix-2983
Open

fix: process_iter() no longer skips reused PIDs for one iteration#2990
TrueFurina wants to merge 1 commit into
giampaolo:masterfrom
TrueFurina:fix-2983

Conversation

@TrueFurina

Copy link
Copy Markdown

Fixes #2983 (refs #2601)

Problem: process_iter() computed new_pids before removing stale Process instances for reused PIDs. Since the reused PID was still in _pmap, it was excluded from new_pids — then the stale instance was removed, leaving the PID absent from this iteration entirely.

Fix: drain _pids_reused (removing stale instances) before recomputing the pmap set, so a reused PID is treated as new and picked up in the same iteration.

@github-actions github-actions Bot added the bug type label Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant