Skip to content

Commit

Permalink
Microsoft claims "abstract" AF_UNIX sockets work, but they do not.
Browse files Browse the repository at this point in the history
What I am seeing on Win10 18362 is that a process cannot see another
process's abstract sockets, connect(2) fails and bind(2) works
uniquely across multiple processes.

After debugging this issue and concluding the above, I found this:

microsoft/WSL#4240

So it seems I am not the only one to note it.
  • Loading branch information
asveikau committed Aug 16, 2019
1 parent 095de6b commit a9b51de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/afunix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#include <common/path.h>
#include <string.h>

#if defined(__linux__) || defined(_WINDOWS)
#if defined(__linux__)
/* || defined(_WINDOWS) */ /* Microsoft claims to support it, but it doesn't work */
#define HAVE_ABSTRACT_SOCKETS 1
#else
#define HAVE_ABSTRACT_SOCKETS 0
Expand Down

0 comments on commit a9b51de

Please sign in to comment.