1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 03:09:35 +01: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

@ -74,6 +74,9 @@ private:
FdSource from;
Pid child;
unsigned int daemonVersion;
bool initialised;
void openConnection();
void processStderr(Sink * sink = 0, Source * source = 0);