Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

@agents-git-bot agents-git-bot bot commented Jan 9, 2026

Summary

Update documentation to reflect the fix in cloudflare/sandbox-sdk#339 where killProcess() now properly terminates child processes.

Previously, killProcess() only terminated the parent shell process, leaving child processes running as orphans. The fix ensures that killing a background process now terminates the entire process tree by using process groups.

Changes

  • Commands API reference (/sandbox/api/commands.mdx):

    • Updated killProcess() description to clarify it terminates the entire process group
    • Added explanation about preventing orphaned processes
    • Added example demonstrating child process cleanup
  • Background processes guide (/sandbox/guides/background-processes.mdx):

    • Updated "Stop processes" section with detailed explanation
    • Added example showing how process trees are cleaned up
    • Clarified behavior when processes spawn multiple children

Documentation sync

This PR syncs documentation with the bug fix in cloudflare/sandbox-sdk#339.

🤖 Generated with Claude Code

Update documentation to reflect that killProcess() now properly terminates
the entire process tree including child processes, preventing orphaned
processes from continuing to run after the parent is killed.

Changes:
- Update killProcess() API reference to clarify it kills process groups
- Add example showing child process termination behavior
- Update background processes guide with detailed explanation
- Add example demonstrating process tree cleanup

Syncs documentation with cloudflare/sandbox-sdk#339
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/sandbox/ @whoiskatrin, @ghostwriternr, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants