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:
parent
d9730fc93b
commit
220000dc1a
4 changed files with 18 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue