From 9b146a52f1395633e0ef319cfbe0bc452a796330 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 25 Sep 2014 18:45:43 +0200 Subject: nix-daemon: Close unnecessary fd --- src/nix-daemon/nix-daemon.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index 0f3235d76df8..8ec54e4580dc 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -767,6 +767,8 @@ static void daemonLoop(char * * argv) /* Fork a child to handle the connection. */ startProcess([&]() { + fdSocket.close(); + /* Background the daemon. */ if (setsid() == -1) throw SysError(format("creating a new session")); -- cgit 1.4.1