guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

103/118: nix-daemon: Close unnecessary fd


From: Ludovic Courtès
Subject: 103/118: nix-daemon: Close unnecessary fd
Date: Tue, 19 May 2015 14:45:59 +0000

civodul pushed a commit to branch nix
in repository guix.

commit 6092a48603ea7888f8a1f69db87835bc339c973a
Author: Eelco Dolstra <address@hidden>
Date:   Thu Sep 25 18:45:43 2014 +0200

    nix-daemon: Close unnecessary fd
---
 nix/nix-daemon/nix-daemon.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 9cfa343..e74074f 100644
--- a/nix/nix-daemon/nix-daemon.cc
+++ b/nix/nix-daemon/nix-daemon.cc
@@ -904,6 +904,8 @@ static void daemonLoop()
 
             /* Fork a child to handle the connection. */
             startProcess([&]() {
+                fdSocket.close();
+
                 /* Background the daemon. */
                 if (setsid() == -1)
                     throw SysError(format("creating a new session"));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]