POSIX process group kill EPERM edge cases

NousResearch/hermes-agent · cluster 107029

Data as of

Nothing open on GitHub. Fix merged in #117583. Check it covers your case.

The short answer

0open issues
0open PRs
5items grouped
Known?
Yes. 5 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #117583. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #117583. That is separate from the fix event.
Still open
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.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #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

    files: tests/tools/test_local_setsid_descendant_sweep.py, tests/tools/test_search_native_rg.py, tools/environments/local.py

3 PRs closed without merging

From the close comments: done elsewhere 1 · duplicate 1 · other 1

  • #107032 fix(local): skip killpg when tool child shares gateway pgid · other → #117583, #107029
  • #107054 fix(local): prevent gateway self-kill during process cleanup · duplicate → #107032, #107029
  • #116949 fix(tools): swallow EPERM when the rg teardown kills an already-empty group · done elsewhere → e234408, #117583
Closed issues · 1
  • Closed#107029Gateway SIGKILL: _kill_process_group_posix killpg()s the gateway pgid on Darwin (follow-on to #97296)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.40: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Merged PRs
#117583
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
20 Sep 2026

For your agent

The same facts, typed.