1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

* Open the connection to the daemon lazily (on demand) so that

read-only operations (like nix-env -qa) work properly when the
  daemon isn't running.
This commit is contained in:
Eelco Dolstra 2008-12-11 14:30:25 +00:00
parent a0766eca27
commit 07cdfb09fb
3 changed files with 38 additions and 6 deletions

View file

@ -35,7 +35,7 @@ struct FdSink : Sink
FdSink()
{
fd = 0;
fd = -1;
}
FdSink(int fd)
@ -54,7 +54,7 @@ struct FdSource : Source
FdSource()
{
fd = 0;
fd = -1;
}
FdSource(int fd)