Skip to content

refactor: add error logging for process group kill failures#18596

Open
jingla2026 wants to merge 4 commits intoanomalyco:devfrom
jingla2026:fix-shell-error-logging
Open

refactor: add error logging for process group kill failures#18596
jingla2026 wants to merge 4 commits intoanomalyco:devfrom
jingla2026:fix-shell-error-logging

Conversation

@jingla2026
Copy link

@jingla2026 jingla2026 commented Mar 22, 2026

Issue for this PR

Improves error handling in process termination.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds error logging when attempting to kill a process group fails. The error was previously ignored (caught as _e), making it difficult to debug process termination issues.

How did you verify your code works?

  • Code compiles without TypeScript errors
  • The change follows existing error handling patterns in the codebase

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Adds error logging in the catch block when attempting to kill a process
group. This helps with debugging process termination issues.
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Mar 22, 2026
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@jingla2026 jingla2026 changed the title fix: add error logging for process group kill failures refactor: add error logging for process group kill failures Mar 22, 2026
@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 22, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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