From 346c0ac3619b8de3d5fc1d76c14d4be9ee20c353 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 9 Apr 2018 08:05:54 -0400 Subject: [PATCH] nix-daemon: Exit successfully when interrupted. Fixes #2058. --- src/nix-daemon/nix-daemon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index f28a52b73..35603af70 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -1035,7 +1035,7 @@ static void daemonLoop(char * * argv) }, options); } catch (Interrupted & e) { - throw; + return; } catch (Error & e) { printError(format("error processing connection: %1%") % e.msg()); }