# NousResearch/hermes-agent · POSIX process group kill EPERM edge cases

## Open now

- Nothing open on GitHub.

These issues and PRs address scenarios where killing a process group (killpg) during tool or gateway cleanup can fail with EPERM or accidentally target the gateway's own process group, particularly on macOS/Darwin.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #117583. Verify it addresses your case.
- **Recommended:** read PR #117583 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-117583`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #107029: Gateway SIGKILL: _kill_process_group_posix killpg()s the gateway pgid on Darwin (follow-on to #97296)

## Prior & competing PRs

- **#117583: fix(tools): search_files keeps its matches on macOS when the rg group kill is refused with EPERM (#116855, supersedes #116949)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `tests/tools/test_local_setsid_descendant_sweep.py`, `tests/tools/test_search_native_rg.py`, `tools/environments/local.py`
- **#107032: fix(local): skip killpg when tool child shares gateway pgid**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#117583`, `#107029`
- **#107054: fix(local): prevent gateway self-kill during process cleanup**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#107032`, `#107029`, `#107032`
- **#116949: fix(tools): swallow EPERM when the rg teardown kills an already-empty group**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `e234408607`, `#117583`

## Fix status

- Merged to main in PR #117583 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-20`.
