Fix finish_child Err arm to fall through to teardown - #399
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthrough
ChangesProcess teardown handling
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk: ⚪ Minimal · up to This narrowly changes error handling so child teardown runs instead of returning early; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Follow-up to #398. The Err arm in finish_child's poll loop early-returned None before the teardown block, so a transient try_wait error (e.g. ECHILD) skipped kill+wait - leaving the child unreaped (zombie on Unix) and reporting a false discovery failure. Now falls through to the same kill+wait+recover teardown as grace expiry. Closes the last error-path gap from the #396 review.
Summary by CodeRabbit