# NousResearch/hermes-agent · macOS rg process group teardown EPERM handling

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #104705: fix(tools): keep native-rg results when group teardown hits EPERM/ESRCH
- PR #104707: fix(search): suppress macOS killpg EPERM for exited-unreaped group

These issues and PRs concern a bug where search results are lost or errors surface on macOS when killing an already-exited ripgrep process group raises EPERM or ESRCH during cleanup. The proposed fixes suppress or swallow those specific errno values during teardown.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. 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.50`: 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

- #104696: \[Bug\]: macOS search_files loses results when native rg cleanup hits EPERM on an exited, unreaped process group

## Prior & competing PRs

- **#104705: fix(tools): keep native-rg results when group teardown hits EPERM/ESRCH**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#104707`
  - files: `tests/tools/test_local_setsid_descendant_sweep.py`, `tests/tools/test_search_native_rg.py`, `tools/environments/local.py`, `tools/file_operations_search.py`
- **#104707: fix(search): suppress macOS killpg EPERM for exited-unreaped group**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#104705`, `#104696`
  - files: `tests/tools/test_killpg_eperm_mac_os_zombie_group.py`, `tools/environments/local.py`
- **#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

- No merged fix on record.
- Subsystem: `environments`
