AstraLuma / unholy

The unholy union of docker compose, neovim, and neovide
https://unholy.readthedocs.io/
3 stars 1 forks source link

Stale socat lockfiles confuse Unholy #6

Open AstraLuma opened 9 months ago

AstraLuma commented 9 months ago

If socat dies unceremoniously (computer dies, kill -9, etc), it'll leave a lockfile.

When starting the agent forward, ensure the socat lockfile is still valid.

AstraLuma commented 9 months ago

Helpfully, the lockfile appears to contain the PID, so unholy just needs to check if:

  1. A process with that PID exists
  2. It's socat
  3. It looks like it might be our socat