This commit is contained in:
Sebastian Stenzel
2021-09-16 10:02:38 +02:00
parent b98691ee52
commit 407718d0a1

View File

@@ -27,6 +27,7 @@ class Server implements IpcCommunicator {
}
public static Server create(Path socketPath) throws IOException {
Files.createDirectories(socketPath.getParent());
var address = UnixDomainSocketAddress.of(socketPath);
var serverSocketChannel = ServerSocketChannel.open(StandardProtocolFamily.UNIX);
serverSocketChannel.bind(address);