diff options
Diffstat (limited to 'src/nix-daemon')
-rw-r--r-- | src/nix-daemon/nix-daemon.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index 9c6766557dde..a3ab1d068bd7 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -551,7 +551,10 @@ static void performOp(unsigned int clientVersion, for (unsigned int i = 0; i < n; i++) { string name = readString(from); string value = readString(from); - settings.set("untrusted-" + name, value); + if (name == "build-timeout") + string2Int(value, settings.buildTimeout); + else + settings.set("untrusted-" + name, value); } } startWork(); @@ -895,8 +898,6 @@ static void daemonLoop() void run(Strings args) { - bool daemon = false; - for (Strings::iterator i = args.begin(); i != args.end(); ) { string arg = *i++; if (arg == "--daemon") /* ignored for backwards compatibility */; |