Skip to content

Don't signal a child that was already reaped - #57

Merged
LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:reap-once
Nov 21, 2026
Merged

LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:reap-once

Conversation

@LudaLunizz

Copy link
Copy Markdown
Collaborator

reap() sent SIGTERM to the pid and its process group before checking whether the child had already been waited for (by _eof or the code agent's try_wait). By then the pid can belong to another process.

It now checks first and does nothing when the child is already reaped.

🤖 Generated with Claude Code

reap() sent SIGTERM to the pid and its process group before checking
whether the child had already been waited for (by _eof or the code
agent's try_wait). By then the pid can belong to another process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 509b8ded-1caf-45d5-8919-c839043db08f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@LudaLunizz
LudaLunizz merged commit 978e8cd into Silvertree2010:main Nov 21, 2026
5 checks passed
@LudaLunizz
LudaLunizz deleted the reap-once branch November 27, 2026 19:24
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.

1 participant