# NousResearch/hermes-agent · Gateway PID/lock file handling during restart or replace

## Open now

- 1 issue, 0 PRs open on GitHub.
- #46788: fix: get_running_pid() skips PID check when virtiofs unlinks lock file behind gateway's FD

These issues and fixes concern cases where the gateway's PID file or lock file is absent or deleted during restarts and handoffs, causing PID checks to be skipped or CLI communication to break. The changes adjust fallback behavior so the PID check still runs when the lock file is missing.

## TL;DR

- 4 member(s): 1 open issue(s), 1 closed issue(s), 0 open PR(s), 0 merged PR(s), 2 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.39`: 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.

## Open related issues

- #46788: fix: get_running_pid() skips PID check when virtiofs unlinks lock file behind gateway's FD

## Closed / duplicate issues

- #26643: gateway.pid and gateway.lock deleted after update restart, hiding send_message from CLI

## Prior & competing PRs

- **#26686: fix(gateway/status): keep PID file during --replace handoff when lock file is briefly absent (#26643)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#26643`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#46812: fix(gateway): fall through to PID check when lock file is missing**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `044996e403052a929426f4d9294dc5882686598e`

## Fix status

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