# NousResearch/hermes-agent · Gateway self-kill via cgroup cleanup prevention

## Open now

- Nothing open on GitHub.

A bug where the cgroup_cleanup reaper kills the gateway process when the gateway is running inside its own cgroup, along with proposed or submitted fixes to refuse cgroup cleanup in that scenario.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #130518. Verify it addresses your case.
- **Recommended:** read PR #130518 (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-130518`. 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

- #126845: \[Bug\]: cgroup_cleanup reaper self-kills the gateway when run from inside its own cgroup (terminal tool / agent child)

## Prior & competing PRs

- **#130518: fix(gateway): stop the cgroup cleanup reaper from killing a live gateway (#126845, salvage #126846)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/jcjc81@users.noreply.github.com`, `gateway/cgroup_cleanup.py`, `tests/gateway/test_cgroup_cleanup.py`
- **#126846: fix(gateway): refuse cgroup_cleanup reaping under a non-systemd parent (prevents live-gateway self-kill)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `99f1b9afe2`, `#130518`
- **#126927: fix(gateway): refuse cgroup cleanup while gateway is live**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `99f1b9afe2`, `#126846`, `#130518`

## Fix status

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