Skip to content

fix: use DataDir hash in IPC pipe name to isolate instances with different data dirs#2552

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/ipc-channel-datadir-isolation
Jul 21, 2026
Merged

fix: use DataDir hash in IPC pipe name to isolate instances with different data dirs#2552
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/ipc-channel-datadir-isolation

Conversation

@JC-Chung

Copy link
Copy Markdown
Contributor

Named pipe name was scoped per-user only, but process.lock is scoped
per-DataDir. This mismatch caused a second instance with a different
DataDir to incorrectly forward its args to the first instance.

Fix by appending a SHA256 hash of DataDir to the pipe name.

@love-linger love-linger self-assigned this Jul 21, 2026
@love-linger love-linger added the bug Something isn't working label Jul 21, 2026
@love-linger
love-linger merged commit e0e2ab6 into sourcegit-scm:develop Jul 21, 2026
14 checks passed
@JC-Chung
JC-Chung deleted the fix/ipc-channel-datadir-isolation branch July 21, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants