From 07cdfb09fb74cf8e1c3c70c070ad20b5d1119fcf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 Dec 2008 14:30:25 +0000 Subject: * 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. --- src/libstore/remote-store.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libstore/remote-store.hh') 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); -- cgit 1.4.1