diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-11T14·30+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-11T14·30+0000 |
commit | 07cdfb09fb74cf8e1c3c70c070ad20b5d1119fcf (patch) | |
tree | e17b07dfb5eb9861fe2df2f9f7c5247c4244bc8d /src/libstore/remote-store.hh | |
parent | a0766eca270390c2181c7f31f27f93629b19f4a5 (diff) |
* 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.
Diffstat (limited to 'src/libstore/remote-store.hh')
-rw-r--r-- | src/libstore/remote-store.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/remote-store.hh b/src/libstore/remote-store.hh index 717da7377281..3d55d23d958e 100644 --- a/src/libstore/remote-store.hh +++ b/src/libstore/remote-store.hh @@ -74,6 +74,9 @@ private: FdSource from; Pid child; unsigned int daemonVersion; + bool initialised; + + void openConnection(); void processStderr(Sink * sink = 0, Source * source = 0); |