https://github.com/labath commented:

Abstract sockets aren't tied to the filesystem, so you don't need to make them 
"be in" any particular directory, or even look like a path. The only reason I 
suggested to use `createUniquePath` is because it's a convenient way to create 
a random (path-like) string, but it looks like you're not making use of that 
(the first argument to this function has a slightly different meaning than it 
does for createUniqueDirectory).

The way I envisioned that is to do a
```
createUniquePath("AbstractSocketFromBoundNativeSocket-%%%%%%%%", name, 
/*MakeAbsolute=*/false);
```

.. though now that I think about it, it may be even better to detach this from 
the file system completely and use something like 
`UUID::Generate().GetAsString()` to generate a random name.

https://github.com/llvm/llvm-project/pull/137405
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to