interprocess icon indicating copy to clipboard operation
interprocess copied to clipboard

Socket discovery doesn't work across multiple PowerShell versions

Open EverlastingBugstopper opened this issue 1 year ago • 4 comments

Describe the bug

Once a socket has been opened on one version of PowerShell, other versions of PowerShell cannot send/read messages to/from the opened socket.

To Reproduce

Using LocalSocketStream::connect("@known-name.sock"):

  1. Run connect in one process in PowerShell 5, it should succeed and does
  2. Run connect in another process in PowerShell 7, it should fail, but succeeds

Expected behavior

Instead of the second connection succeeding, it should fail because there is already a process attached to that socket.

EverlastingBugstopper avatar Oct 02 '23 15:10 EverlastingBugstopper