Skip to content

docs(runner): add issue #26 references to orphan process prevention comments - #40

Merged
labtgbot merged 1 commit into
mainfrom
fix/issue-26-orphan-processes
Jun 15, 2026
Merged

docs(runner): add issue #26 references to orphan process prevention comments#40
labtgbot merged 1 commit into
mainfrom
fix/issue-26-orphan-processes

Conversation

@xdevrobot

Copy link
Copy Markdown
Collaborator

Summary

Issue #26 (orphan/detached bash subprocesses surviving agent death) is a duplicate of #24. All four recommendations from #26 were already implemented via PR #39 (now merged to main):

  1. detached: true removed from spawn options
  2. ✅ All spawned PIDs tracked in spawnedProcesses Set, killed in stopAgent() and process.on('exit')
  3. PR_SET_PDEATHSIG via bin/prctl-pdeathsig.c helper (Linux)
  4. child.kill() used instead of process.kill(-pid) — works while parent is alive

This PR adds code comments linking the implementation back to issue #26 for traceability.

Closes #26

🤖 Generated with Claude Code

…omments

All four recommendations from issue #26 are already implemented in main:
- detached: true removed
- spawnedProcesses Set tracks all children
- killAllSpawnedProcesses() called in stopAgent() and process.on('exit')
- PR_SET_PDEATHSIG helper for Linux

This commit adds code comments linking the implementation back to issue #26
for traceability.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@labtgbot
labtgbot merged commit e0d9dbf into main Jun 15, 2026
17 checks passed
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.

[MEDIUM] Detached bash subprocesses from exec_run survive agent death — zombie/orphan process leak

2 participants