All plugins

DSH / BUNDLE / BUNDLES

dsh-single-instance-guard

v0.1.0Tang-mm95 / dsh-single-instance-guard666bad9dde

InstallableBundlesBundles & other modulesCommunity · Topic auto-analysis

Overview

dsh-single-instance-guard

DSH_HOME single-instance lock plugin: aborts startup loudly when another dsh server already uses the same data directory, preventing concurrent session-log writes (the 'seq gap in committed region' corruption class)

README / EN

Package documentation

Registry summary

DSH_HOME single-instance lock plugin: aborts startup loudly when another dsh server already uses the same data directory, preventing concurrent session-log writes (the 'seq gap in committed region' corruption class)

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- 两个进程同时发现同一把过期锁时,删除+重试路径存在极小竞态窗口;但 `O_EXCL` 原子写入保证最终只有一个胜者,败者会在重试时正确失败。 - 锁只防"多个服务共用同一个 `DSH_HOME`";不防(也不支持)两个 dsh 实例通过不同 root 指向同一会话文件。