1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-22 02:09:36 +01:00

makeJSONLogger(): Support logging to a Unix domain socket

This commit is contained in:
Eelco Dolstra 2025-03-13 15:48:52 +01:00
parent d9730fc93b
commit 220000dc1a
4 changed files with 18 additions and 4 deletions

View file

@ -84,9 +84,7 @@ ref<RemoteStore::Connection> UDSRemoteStore::openConnection()
auto conn = make_ref<Connection>();
/* Connect to a daemon that does the privileged work for us. */
conn->fd = createUnixDomainSocket();
nix::connect(toSocket(conn->fd.get()), path);
conn->fd = nix::connect(path);
conn->from.fd = conn->fd.get();
conn->to.fd = conn->fd.get();